Ashyyc Posted February 13, 2021 Share Posted February 13, 2021 (edited) Site URL: https://www.eatturmeric.ca/subblytest Hello, We are integrating an external cart system called subbly. When we click the "add to cart" button on this page, it is supposed to add to the subbly cart and re-direct back to /subblytest. This works in all browsers but chrome. Chrome instead re-directs to homepage when we click "add to cart". Any idea why we see this behaviour only in chrome and is there a solution? Cheers, Ash Edited February 13, 2021 by Ashyyc Link to comment
creedon Posted February 13, 2021 Share Posted February 13, 2021 I'm not sure what is going on but I do see something that looks out of place. That Reload looks wrong to me. It is caused by this bit of code. <a href="javascript:window.location.reload(true)" id="yui_3_17_2_1_1613181862235_404">Reload</a> This is probably in Settings > Advanced > Code Injection > HEADER. Or, Page Settings > Advanced > Page Header Code Injection for the page. When I go to the URL < https://www.subbly.co/checkout/add/72198 > for one of the add to cart buttons manually I get the following. Not sure if you should be able to go directly to the URL in the browser by typing in the address but if so then it appears there is a configuration error. 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. Link to comment
Ashyyc Posted February 13, 2021 Author Share Posted February 13, 2021 @creedon Thank you for the response. Sorry yea that JS code is just something i was playing around with to fix this issue. The problem was there before I put that snippet in. I have removed it now. No, that link is not supposed to work stand alone. The link is doing its job , it is adding to cart when clicked on but for some reason it goes back to the home page instead of staying on /subblytest. This only happens in chrome. Note this funtionality is for "add to cart" button not "subscribe" on the page. Link to comment
creedon Posted February 13, 2021 Share Posted February 13, 2021 Ah. I can confirm the behaviour you describe. Add to cart works on Safari. Does not work on Chrome. A bit odd. I don't have a solution at this time. Hopefully someone else has come across this issue. Ashyyc and tuanphan 1 1 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. Link to comment
Ashyyc Posted February 14, 2021 Author Share Posted February 14, 2021 Do you think this might have something to do with this issue? https://stackoverflow.com/questions/22551976/why-does-chrome-not-redirect-using-meta-refresh Link to comment
creedon Posted February 14, 2021 Share Posted February 14, 2021 The two mechanisms are different. The meta refresh is a tag that is inserted in the head of page that causes the browser to automatically refresh is contents. It's basically the very old way pages were kept fresh before all the ajax stuff came long. Your issue is related to links and redirects. 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. 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