Switch between pages - Forum | JoomShaper
Solved SP Page Builder

Switch between pages

Asked by pluntke 11 months ago Last activity 11 months ago

Hello,

how can I jump back to a previous page from a page created with SP Page Builder?

For example: I go from page 1 to page 2 via a button (URL). Now I want to go back to page 1. Is there a general solution, or can I only jump back using the URL of page 1?

Thanks

Accepted answer

Marked as the solution
Rashida Rahman Staff

Hi there!

Thanks for reaching out.

Yes, you can go back with the help of the browsers back arrow.

Or you can take a button and make the button act like the browser’s “Back” button, it doesn’t need to know the exact URL.

How to do it in SP Page Builder:

  1. Edit the page or create a module with SP Page Builder.

  2. Add a Button addon.

  3. In the button’s link field, enter:

javascript:window.history.back();

  1. Save and update the page or publish the module in your desired module position.

Only works if the user navigated from another page in your site.
(If they came directly from Google or refreshed, it won’t have a “previous page” in history.)

Best regards

2 more replies

pluntke Asked this

It works. Thanks

Rashida Rahman Staff

You are always welcome:)

Have a nice day!

Log in to reply.