Needs work
Project:
Global Redirect
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Sep 2011 at 14:23 UTC
Updated:
19 Jan 2019 at 14:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Niklas Fiekas commentedSubscribe.
Comment #2
dvatri commentedSubscribe
Comment #3
MakubeX commentedsubbed
Comment #4
kingandyMost recent release of Global redirect seems to have resolved this issue (we were experiencing a redirect loop but now we are not). Can anyone else verify?
Comment #5
jordanmagnuson commentedI'm using the latest stable releases of subpathauto and global redirect, and my subpath pages are NOT being redirected by global redirect.
EG user/1/my-view is NOT redirecting to user-name/my-view automatically. Both paths are accessible.
Comment #6
Anonymous (not verified) commentedMy custom/path/edit pages redirect to node/2/edit, instead of the other way around, running latest version of Global Redirect and Subpathauto
Comment #7
carajito commentedLast devel version of this module and the las version of global redirect
When I try to go user/user-name/edit I will receive access deny
Comment #8
carajito commenteddid anyone managed to solve this problem?
Comment #9
jlapp commentedI've tested this with the latest dev releases of both Sub-pathauto and Global Redirect and this is still an issue.
An easy test case for this is:
Is there any chance of a fix for this issue?
Comment #10
jlapp commentedI've been looking for a solution to this issue for a few days and I think I've come up with a potential fix. Hopefully the maintainer of this module and/or the community can weigh in and see if this makes sense.
In a custom module, I added a function:
This is essentially what Global Redirect does to redirect the standard Drupal paths - this is just doing the same thing specifically for Sub-Pathauto paths. Any thoughts on this approach? Perhaps we could add this function to Sub-Pathauto (possibly with a configuration option to enable/disable it).
Comment #11
jlapp commentedMarking as Needs Review to see if the approach in #10 resolves this issue for anybody else.
Comment #12
erlendoos commentedApproach #10 works for me!
(how many 'works for me' are needed?)
Comment #13
Andre-B#10 should be:
Comment #14
rooby commentedFor a patch to be committed to the module there first needs to be a patch.
No amount of "works for me"'s will help without the patch.
Setting back to "Active" until there is a patch to review as per https://www.drupal.org/node/156119
Comment #15
erlendoos commentedwhy?
Comment #16
rooby commentedBecause module maintainers commit patches, so if there isn't a patch there is nothing to commit.
Comment #17
rooby commentedIssues with patches will almost always get preference from a maintainer than ones without and issues with already reviewed patches will get an even higher preference.
There are just too many issues for most maintainers to do every issue in their queue.
Comment #18
rooby commentedIf I end up needing a fix for this I will make a patch but otherwise I probably won't get to it.
There is information on how to make patches at https://www.drupal.org/patch/submit
Comment #19
KeyboardCowboyMoving issue to Global Redirect.
Comment #20
KeyboardCowboyComment #21
jay.lee.bio commentedThanks to Andre-B & jlapp, I've been using #10 & #13 during the past few months. And special thanks goes to KeyboardCowboy for providing the patch, as #20 works flawlessly for me. Thank you all.
Comment #22
dewalt commented@KeyboardCowboy, the patch doesn't work with multilingual site with language detection by prefix. Look for the next values dump before the patch changed lines on
ru/node/12/editpage requested:and in this case we get infinity redirect loop.
As for me, the problem is in $request_path rewrite - it should be the same, user requested in browser path, to allow globalredirect work as expected. There is also a chanse, that other modules, that alters outbound URL path, can break globalredirect module with $request_path rewrite. Also, the same variable is stored to
hook_url_outbound_alter()as $path and $path_original - that is incorrect.So I propose to fix the issue with $request_path protection. The patch is attached.
Comment #23
chris matthews commentedPer #22, the patch in #20 doesn't work with multilingual site with language detection by prefix.