Jump to content

Redirect from site with target links

Go to solution Solved by tonic123,

Recommended Posts

Posted

I'm in the process of transferring a site to Squarespace from another host.  The previous site is one page with about 10 links that are just targets to the same page.  The new site is now separate pages but the url redirect doesn't allow the "#" sign.  Anybody know of another way to redirect?

  • Replies 2
  • Views 168
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Solution
Posted

it's not there yet, but I think this will work:

<script>
  if (window.location.hash=='#contact')
  {window.location.replace("/contact")}

</script>

Create an account or sign in to comment

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

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.