Shopify Newsletter signup form redirect ANCHOR is WRONG

Hi Smilingdog!

Just came across your posts when searching around regarding the same issue. A couple more months down the line and they still don’t seem to have resolved this one. Will try myself as maybe with volume of enquiries may result in quicker responses.. It seems such a silly and trivial issue to fix.

In the meantime, I’ve tried your workaround but can’t get it to work for my site. I am not a developer by any means, but have a small (possibly dangerously so) bit of knowledge of these things - I have a feeling that my page IDs are slightly different to the ones in your example so don’t match up to function but I can’t quite work out how to vary them correctly.

For me, the challenge page defaults to /challenge#ContactFooter. Based on your code I thought I might therefore need to try

var res = str.replace(“challenge#ContactFooter”, “challenge#challenge”);

But this doesn’t seem to work. I’m guessing I’m changing the wrong parts of the code. Are you able to point me in the right direction please?