Add a way of seeing the referrer for each 404

Created on 21 July 2023, 11 months ago
Updated 21 June 2024, 7 days ago

Problem/Motivation

Right now there's no way of seeing the source of a given 404. This is something that's available with a dblog report of 404's, but there's no way of seeing them when using Redirect 404.

Proposed resolution

Provide a way of seeing the referrers for each 404.

Remaining tasks

Work out how to do this.

User interface changes

A means would exist to see the referrer, the source of each 404.

API changes

TBD

Data model changes

TBD

✨ Feature request
Status

Needs review

Version

1.0

Component

User interface

Created by

🇺🇸United States DamienMcKenna NH, USA

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @DamienMcKenna
  • 🇺🇸United States DamienMcKenna NH, USA
  • 🇩🇪Germany Anybody Porta Westfalica

    Thanks @DamienMcKenna I totally agree.

    Surely this would have to be tracked in another table and as additional information, but knowing the referrer is extremely helpful to find out and fix the 404's. That way we can wee, where the wrong link is coming from.

    It's a 1:n relation, so it definitely needs another table. I guess the current 404's list can be kept and a link to details should be added, when clicking an entry. That one should then list the referrers.

    Clearing the 404's should also clear that additional table.

    Might be a nice feature to implement for Novice's?

  • First commit to issue fork.
  • Pipeline finished with Success
    7 days ago
    Total: 178s
    #204535
  • 🇮🇳India sandipta

    After applying the MR we need to use the drush updb command once.
    The referrers will be stored in the 404_referrers table.
    Too see the referrers from UI itself
    1. Visit /admin/structure/views/add
    2. Under View Settings select 404 Referrers
    3. Add necessary fields to view the referrer

  • Status changed to Needs review 7 days ago
Production build 0.69.0 2024