Two questions here related to URL structure. When we migrated our website to Hubspot, a decision was made to add trailing slashes to all of our URLs. Unfortunately, Hubspot does not do that, so we have to add the trailing slash manually each time we create a page. So, my first question is this: is there a way to force Hubspot to add the trailing slash on every page URL when a page is created? And secondly, the fact that our URLs have traling slashes seems to be preventing named anchors from working. Our page https://www.sungardas.com/en-gb/services/workplace-recovery/ has a tab section midway down the page. Those tabs contain anchors, such as https://www.sungardas.com/en-gb/services/workplace-recovery/#shared. However, the anchors only work if I remove the trailing slash from our URL and republish it. Any suggestions on how to make those anchors work without losing the trailing slash on the page URL?
You can just add an ID to the section container and link to that instead of directly to the tab control. Or make sure your tab control itself actually has an ID.
Regarding whether there's a way to add the trailing slashes directly... I'm not aware of one. You could try doing a flexible redirect with a '*' wildcard, but I'm pretty sure it's not that flexible to redirect everything, so you might be out of luck there.
Why is the trailing slash so important for your use case? It can generally be added inside analytics tools (I do it constantly in Google Analytics for example!) to standardise the URLs there. And if it's for record-matching between systems, site.com/x and site.com/x/ should be treated as equivalent.
If it's a big pain to maintain on your side, may be worth a ticket with HS support - I suspect they may be able to add more complex URL redirects on the back-end (although I am guessing about that!) - which could solve things nicely.
Cheers,
Mike
---
Did I answer your question? If your question is answered, please mark it as a solution. If you need more help, hit that big orange 'Reply' button!
You can just add an ID to the section container and link to that instead of directly to the tab control. Or make sure your tab control itself actually has an ID.
Regarding whether there's a way to add the trailing slashes directly... I'm not aware of one. You could try doing a flexible redirect with a '*' wildcard, but I'm pretty sure it's not that flexible to redirect everything, so you might be out of luck there.
Why is the trailing slash so important for your use case? It can generally be added inside analytics tools (I do it constantly in Google Analytics for example!) to standardise the URLs there. And if it's for record-matching between systems, site.com/x and site.com/x/ should be treated as equivalent.
If it's a big pain to maintain on your side, may be worth a ticket with HS support - I suspect they may be able to add more complex URL redirects on the back-end (although I am guessing about that!) - which could solve things nicely.
Cheers,
Mike
---
Did I answer your question? If your question is answered, please mark it as a solution. If you need more help, hit that big orange 'Reply' button!
Thank you for posting your query in the Community.
I will tag in some of the Top Contributors to see if they have adivice: @Tnichs and @mike-ward , it would be great if you could share some knowledge on this!