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.

January 5, 2019

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 BLOG ARTICLES

Check out some other articles!

Join Over 55,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 55,000+ other creators across our communities.