Browser history back script in button link setting no longer work?

Hi @Brando, it appears the update didn’t work…it’s still sending to a blank page on “back”

Best,

Nathan

Also, I will have to find an alternative solution until it is fixed that doesn’t involve me rebuilding the whole layout of my home page and UI/UX.

How would one use @Christoffer 's solution if one were using a link block instead of a button? @Christoffer @Brando @mistercreate

Best,

Nathan

Hey @Brando, I’ve not seen any change in it going to blank.

Best,

Nathan

Hi @nathanphilsteele,

Thanks for your additional info.

I can see that the javascript back link is still showing the http:// in the link on the published site, which breaks the js call:

I am helping to take a look closer and help to get this resolved. I will post an update here when I have more info.

As a side note, this can also be done in the before body of custom code to monitor when the class is clicked on to do the same thing. If you use custom code in Before Body, no need to add code to the actual element, just watch for the Click event on the class and then execute the code.

More info as soon as I have it.

Thanks for that info @cyberdave

I got rid of the http:// and it’s still sending to blank…so I’m definitely down with using custom code. Thank said, I’m not much of a dev…I tried but to no success. Thoughts what the code might look like if one is using a link block instead of a button?

Thank you @cyberdave and best,

Nathan

Hi @nathanphilsteele, I am still taking a look at the javascript link in the url field, however in the meantime, here is an example how to put a link block on a page, give it a class of “goback” and use a little custom code in the Before Body to use the GoBack method in javascript to cause the page to go back in history: https://webflow.com/website/Go-Back

I hope that helps.

2 Likes

Hi @cyberdave That did the trick!

Thank you so very much!

Best,

Nathan

1 Like

Hi @nathanphilsteele

I performed a quick test on this end and it the back script appears to be working as expected.

Link settings:

Export preview:

Nice! Thank you @Brando

Best,

Nathan

1 Like

There much appreciated! @Brando

1 Like

Appears to be fixed on my end. Actually works better than it did previously. No more phantom back tick deletion. Thanks everyone!!

2 Likes

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.