404 page error when clicking back/previous

Hey,
When clicking the browser back button to go to previous page I get a 404 page error and I see /undefined is added to the url. I’m not sure how to fix this is the page it’s going back to is the home page and so there’s no slug or anything to fix or re-direct (from my knowledge…)

See the following showing this:

Read only below:

Hi there!

Instead of relying on the browser’s back button, you can create a custom back button in Webflow that provides better control over user navigation. To implement this:

  1. Select the element you want to use as your back button
  2. Open the element’s link settings
  3. In the URL field, enter: javascript:window.history.go(-1)
  4. Important: Include the backtick (`) at the start, otherwise Webflow will automatically add “http://” and the function won’t work

This method ensures consistent behavior across different browsers and gives you more control over the styling and placement of your back button.

Hopefully this helps! If you still need assistance, please reply here so somebody from the community can help.

I can’t reproduce it in Chrome windows. It works as expected.

However, undefined looks like a JS var, so it’s most likely you have script changing the browser history, that isn’t working right.

A quick code search on the /info-index page, you can see most of the history mods are done in by swiper.js. I’d check anything related to browser back button behavior and history settings there.