Jump to content

Using primary domain (instead of built in squarespace domain) for relative links?

Recommended Posts

Hi folks. When I create relative links (e.g. to files or other pages), Squarespace is insisting on using the built-in domain (which I had set to SITE-preview for dev purposes).

It is still doing this despite setting the primary domain to be the actual purchased domain, so the 'development' domain is still showing when you hover over links etc, which isn't great.

I've checked domain settings and the bought domain is the 'primary' domain, so why isn't SS using this when creating links across the site? How can I make this happen?

I've gone into some of the links and manually added the real domain to the front of relative links, but I'd like to know if there's an easier/better way to 'fix' it?

Link to comment

If you put a link in to a button or text using just the URL slug (or via the assisted process) then it will work correctly. By correctly I mean that it will not change the domain name that you are viewing the website with. In the backend or when accessing the website via the built in domain it will remain on that domain, if you visit the website on your primary domain then it will remain on that domain.

I would recommend against putting the full domain name in to links as it will force the website to reload completely each time, and it'll cause you problems when editing.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
4 hours ago, Ziggy said:

If you put a link in to a button or text using just the URL slug (or via the assisted process) then it will work correctly. By correctly I mean that it will not change the domain name that you are viewing the website with.

Thanks for the reply. Looking into it more just now, I see what was causing my confusion. I just re-tried editing some buttons that I had added while developing... removed the link, and re-added to the page using SS's chooser... and it inserted the relative link, but kept the demo URL when hovering over those buttons (in the editor).

However, when loading the actual site with its public URL via a private window, those links DO show the correct URL.

I was getting worried when I saw the links on SS's backend weren't updating, when that's not what I should've been looking at!

Thanks again for helping me figure that out 🙂 

Link to comment
51 minutes ago, David_S said:

Thanks again for helping me figure that out 🙂 

No worries, completely understandable.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

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.