Back to site links to wrong path in case the last path visited is 404 page

Created on 24 October 2015, almost 10 years ago
Updated 8 August 2025, about 10 hours ago

Problem Motivation

Back to site links to wrong path in case the last path visited in *Page not found* page.

Steps to reproduce

  1. Login as an admin
  2. Visit a page that does exist - for example the front page.
  3. Visit any page which does not exist: For example: http://example.com/not-found
  4. Goto any page that exist, for example Modules page
  5. Goto any other page that also exists, for example the config page
  6. Click *Back to site*. It links to 404 page in step 2, instead of page in step 5

Proposed resolution

Remaining Tasks

See comment #66 -> #69.
Convert to MR

API Changes

None

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component

toolbar.module

Created by

🇮🇳India a_thakur

Live updates comments and jobs are added and updated live.
  • Needs manual testing

    The change/bugfix cannot be fully demonstrated by automated testing, and thus requires manual testing in a variety of environments.

  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024