RossN Posted January 2, 2020 Share Posted January 2, 2020 Is there a way to preserve query parameters when redirecting URLs? For example, how do I redirect www.foo.com/index?query=bar to www.foo.com/blog?query=bar without losing the query param? Link to comment
Danmiddo92 Posted January 14, 2020 Share Posted January 14, 2020 Same problem here. Need to redirect URLs with queries. Link to comment
midwestdev Posted January 22, 2020 Share Posted January 22, 2020 Also having this issue, when going from www to non-www redirect: www.foo.com/?gclid=TeSter-123 should go to foo.com/?gclid=TeSter-123, but strips it down to foo.com during the 301 redirect. Is there any solution through the Squarespace editor somehow or is Developer Mode required to fix it? Link to comment
midwestdev Posted January 22, 2020 Share Posted January 22, 2020 Update, I tried using Developer Mode, and couldn't find anything of use to help, even though a Customer Service Rep suggested it to me. Link to comment
canopymate Posted April 23, 2020 Share Posted April 23, 2020 Has there been any progress on this topic? I'm having the same issue where /?gclid=TeSter-123 is being removed. Link to comment
AleksZamenhof Posted May 13, 2020 Share Posted May 13, 2020 i'm new to squarespace and haven't tried this, but if you want to maintain some information from the query args across page views, perhaps you could write custom javascript that stores the args in a cookie and retrieves it later when needed. Link to comment
oollii Posted November 23, 2020 Share Posted November 23, 2020 I also need this feature, any chance on getting support? Link to comment
Lasting Posted January 27, 2022 Share Posted January 27, 2022 Hi y'all, After having the same issue I reached out to Squarespace support and received the following workarounds: If you use the www version of a link, such as www.yourlink.com vs. yourlink.com, it will prevent the parameters from being stripped. Another option would be to use "#" instead a "?" when creating the utm tracking. We implemented #1, and it's been working seamlessly. Hope this helps! creedon 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment