Back to Blog

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.

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.
OTHER GUIDES & LESSONS

Boost your webflow site further.

Join Over 30,000
Creators Today

Join our newsletter list for occasional updates, products and insights.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Join 30,000+ other creators across our communities.