Jump to content

URL Mapping: Cloaking (Creating Pretty Links) and Opening External Affiliate Links

Recommended Posts

I cloak (create pretty) and open external affiliate links via URL mapping, which looks like this in URL Mapping:

/affiliate/my-favorite-luggage -> https://www.messylink.xyz 301

This has worked wonderfully until recently, when I noticed these links *do* still work on mobile/tablet but they no longer open on desktop - or they seem to be trying very hard to open but cannot - rendering a blank page.  And Ajax is not on.

Is this happening to anyone else?  Working so slowly it's not working?  Do you know of a fix?

Do you know of a better way to create and manage pretty affiliate links (without markup or having to individually enter data on every page)?

Any help is greatly appreciated!

Link to comment
  • 1 month later...
  • Replies 2
  • Views 514
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Mine were ending up at a 404 page, due to safety measures that Squarespace hardcoded into URL Mapping: if a visitor clicks on the same URL mapped link within a 2-minute time period, then the 2nd time they click on it forwards to a 404 page instead. From my testing, this applied to all visitors. If you have any type of traffic, then you will definitely have multiple people clicking on the same URL mapping at some point within a 2-minute window..

Unless I'm missing something, then this is useless for affiliate link cloaking.

Edited by sure11
Link to comment
7 hours ago, sure11 said:

Mine were ending up at a 404 page, due to safety measures that Squarespace hardcoded into URL Mapping: if a visitor clicks on the same URL mapped link within a 2-minute time period, then the 2nd time they click on it forwards to a 404 page instead.

This is normal and is a security precaution to prevent redirect loops, where a URL is redirected to another URL, which in turn redirects back to the URL that was originally requested. This could lead to an infinite cycle of redirects and this must be avoided.

A redirect will always work the first time, allowing the visitor to redirect correctly to the required page. They shouldn't need to attempt the redirect again as they've already reached the page but, if they do try to reach the original (redirected) page a second time within two minutes, they'll be sent to the designated 404 page.

Did this help? Please give feedback by clicking an icon below  ⬇️

About me: I'm Paul. A SQSP User for 18 yrs, I joined Circle when it launched in 2016 and have been a Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL, providing expertise and extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee fuels my work.

Book paid help with a Squarespace Domain

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.