webrecorder / wabac.js

wabac.js - Web Archive Browsing Augmentation Client
https://replayweb.page
GNU Affero General Public License v3.0
96 stars 16 forks source link

[Feature]: Add back button to the "Archived Page Not Found" page #170

Closed Shrinks99 closed 1 month ago

Shrinks99 commented 2 months ago

Context

Currently users can try opening the requested URL in a new tab, but this doesn't meet the needs of users who are using ReplayWeb.page without the full UI where a back button might be the best use case.

What change would you like to see?

Add a back button in addition to the "open in new tab" option for easy navigation back to the previous page in every view.

tw4l commented 2 months ago

Change in wabac.js

ikreymer commented 1 month ago

Can just add a 'Back' link on the 404 page as a start.

ikreymer commented 1 month ago
Screenshot 2024-05-30 at 4 30 14 PM

How does this look? Also added a check to only show the 'Go back' link if the page is a top-level page, to avoid showing it in iframes.