Skip to content

Unknown routes silently redirect to Mine eForms; menu editor accepts links that match no route #8103

Description

@renemadsen

Customer report

Ryger ind på eForm-oversigt

Current behaviour

A menu entry whose link matches no route (e.g. a plugin link saved without the /plugins prefix, or a removed plugin route) silently redirects to "Mine eForms" through the catch-all route {path: '**', redirectTo: ''}. The user gets no hint that the link is wrong, and admins can save such links in the menu editor without a warning. Menu saves delete and re-insert every item, so there is no trace of who changed a link.

Fix sketch

  1. Replace the silent redirect with a "Siden blev ikke fundet" page that shows the requested URL and a link to the start page.
  2. Menu editor: warn when an internal link matches no registered route; offer "restore default link" for items that come from a plugin template.
  3. Optional: record who saved the menu and when; make the menu save a single transaction.

Tests

  • Playwright: navigate to an unknown URL → the not-found page shows the URL (no redirect).
  • Menu editor: entering an internal link that matches no route shows the warning.

Activity

  1. added 2 commits that reference this issue on Oct 3, 2026
  2. renemadsen commented on Oct 7, 2026

    @renemadsen
    MemberAuthor

    Verified on a staging installation: an unknown URL shows the not-found page with the URL; the menu editor warns for /no-such-page (it does not warn for an unknown path under an existing plugin prefix such as /plugins/items-planning-pn/reports).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions