For one of my sites i want to give each page a go back link as breadcrum link
I’ve been trying to make this but it seems webflow cant create a link like that
If i make a link and select external url and put in the url field : history.go(-1) webflow automaticly makes it http://history.go(-1) and this doesnt work.
Then i thought i give the link a custom attribute but if im trying to use href or onclick im getting the error “this is a reserved name”
So my question here is how can i make a link that goes back to the previous page in webflow?
I think history.go(-1) is okay, but it’s not great if someone lands on your page as the result of clicking a link, in which case they’ll be taken to a new tab/window. In those cases, the back button takes them nowhere. It’s always good to have a fallback in that case.
I recommend adding to your header:
Then, under link settings, type:
This will take the user back, unless there is no back, in which case it’ll take them to your URL. To test this, create a link to the page that you’re using this button on, and right click that link to open your page in a new tab. Press your new back button, and you’ll be taken to your custom URL.