Tutorials
January 5, 2019

How to return to your last visited page in Webflow

Want to let your user return to the page they just left? This guide is perfect for you.

Back to Blogs

This one is super simple and a perfect way to return your users to their previous page.

We believe this one is best suited for breadcrumbs, when you want to have a return link that actually returns users to the last page.

Example of return back link in action.

1. Create link with class name .return

Firstly you will want to add a link block or text link and give it the class name (.return). This is what will communicate with the script below.

2. Add custom code

You can add this code in either in your page or site settings. We recommend putting this in page settings, if we plan to use this in multiple places.


<script>
$(document).ready(function() {
$(".return").click(function() {
window.history.back();
       });
});
</script>

Putting code in project settings footer
Putting code before the pages body tag.