Needs work
Project:
Redirect
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Apr 2016 at 04:20 UTC
Updated:
21 Aug 2023 at 01:17 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
berdirWhat would access do exactly? The standard access operations are called for all entity types (edit, delete) and core doesn't document them anymore for each entity type.
And prepare/validate are no longer called, just documentation left-overs.
Comment #3
johnhanley commentedI'm trying to use hook_redirect_alter in Redirect 8, but it doesn't appear to be firing.
I want to show a message (via drupal_set_message) to alert the user of why a specific redirect has occurred.
Comment #4
rasikap commentedComment #5
rasikap commentedI have removed the hooks hook_redirect_prepare() and hook_redirect_validate() and their documentation.
Comment #6
berdirThanks. I'm not quite sure what to do about the remaining hooks, IMHO the load hook can be removed as well as the whole block about storage hooks, since that is all generic now.
hook_redirect_load_by_source_alter() also doesn't exist, we should probably remove that as well, if someone needs a feature like that then we can think about adding it, not sure I see the use case right now.
And altering redirects can be done with a response subscriber, redirects can be identified through the X-Redirect-ID header. Maybe we can just document that a bit?
Comment #7
prashant.c@Berdir
As per your comment i haved kept only one hook
hook_redirect_alter.Comment #9
kenorb commentedComment #10
ipo4ka704 commentedHi @Berdir @prashantc
After years patch is not apply, I just recreated patch.
Comment #11
ipo4ka704 commentedComment #13
jjtoyas commentedThe last patch seems to work.
Comment #14
igork96 commentedThe patch is applied successfully and it removes the hooks. Marking it as RTC.
Comment #15
kristen polAssigning to myself as I'm triaging all RTBC issues.
Comment #16
kristen polThanks, everyone, for the issue, patches, review, and testing.
In #10, the automated testing failed for Drupal 9.2 and PHP 7.3 so moving back to needs work while I take a look:
https://www.drupal.org/pift-ci-job/1997060
Comment #17
kristen polAlso tagging for better summary.
Comment #18
kristen polThere are a few hooks that were removed from the code, but not removed from comments.
Comment #19
kristen polUnassigning from me. See comments above.