readthedocs / ext-theme

Read the Docs drop in replacement site templates
2 stars 2 forks source link

404: where "Go back" link should go if the history is empty? #335

Open humitos opened 5 months ago

humitos commented 5 months ago

When hitting a 404 page from the new dashboard, we show a "Go back" button that calls javascript:history.back(). However, it's pretty common to have nothing in the history, making that button to do nothing. We should probably check for this and link to the home or not even show that button.

Screenshot_2024-04-18_18-02-25