velocd Posted March 24, 2023 Share Posted March 24, 2023 (edited) Hello, I setup a redirect for my client's website to their Google Calendar booking page: /book -> google calendar URL e.g. https://www.5thstreethair.com/book This works, but I noticed that if I access that link a second time within a few seconds it shows me our site's 404 page. After checking out the request I could see the 301 request sets a "RecentRedirect" cookie with a 10 second expiry, and so any subsequent hits to that mapping within 10 seconds causes that 404 page to show up (presumably because it checks the presence of that cookie). This is expected behavior, right? The link most likely will be accessed externally from search results or even typed in manually from a business card. The 10 seconds isn't a dealbreaker but it may confuse customers that accidentally run into it. Only other alternative I can think of is create an actual /book page with a line of JavaScript to redirect to the Google Calendar booking page, but that feels a bit hacky compared to a 301. Edited March 24, 2023 by velocd Link to comment
Collaborada Posted March 25, 2023 Share Posted March 25, 2023 @velocd Yes the 404 in that situation is expected behavior. But in general, you should embed the booking calendar on the website. Have SEO questions? Chances are we've written about it! Try a quick Google search to find our advice. For fast and personalized support, see our Zoom sessions. ★ Official Squarespace Experts since 2014 ★ 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