Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
RossN

Preserve query params on redirect

Recommended Posts

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?

 

Share this post


Link to post

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?

Share this post


Link to post

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.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...