pvb421 Posted May 23, 2023 Posted May 23, 2023 I'm trying to redirect from a homepage image/button to a different page than the template is assigned to. The homepage image/button is linked to /test and i want to redirect it to /chatgpault i have added this to URL Mappings: /test -> /chatgpault 301 but it is not working. I've tried adding this to the header code of /test: <script> window.location.href = "https://www.paulbjork.com/chatgpault"; </script> still doesn't work. Anyone have any ideas? Thanks for your help!
creedon Posted May 23, 2023 Posted May 23, 2023 Please post the URL for a page on your site where we can see your issue. A link to the backend of the your site won’t work for us, i.e. a url that contains /config/. Please set up a site-wide password, if your site is not public and you've not already done so. Post the password here. Adding a site-wide password does not allow anyone to alter your site. It only allows those with the password to see your site. Please read the site-wide password and how to share a link documentation to understand how they work. We can then take a look at your issue. You may find How to post a forum question post useful. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.
pvb421 Posted May 23, 2023 Author Posted May 23, 2023 (edited) The image/button i'm trying to link from is here https://www.paulbjork.com/ called "test" at the bottom of the page The page i am trying to redirect to when "test" is clicked is https://www.paulbjork.com/chatgpault thanks for your help and patience. let me know if you need any more information. Edited May 23, 2023 by pvb421
creedon Posted May 24, 2023 Posted May 24, 2023 From the outside this redirect appears to be working when < https://www.paulbjork.com/test > is typed in the address bar. When the link is clicked at the bottom of the home page, it does not work. I'm thinking the curse of Ajax Loading strikes again! Try, temporarily, turning off Ajax Loading to see if the problem goes away. Please note that turning off Ajax Loading will affect the performance of your site. Ajax Loading is designed to increase the loading speed of your site after it first loads. paul2009 has a great article on the ins and outs of Ajax Loading. Please see Why does Squarespace code only work on refresh? Instead of doing a redirect from the home page can you just link directly to the desired page? Let us know how it goes. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment