Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Have a strange issue when I have Global Redirect module enabled in that a panel page that has the path set to "/node/%node/fans" always redirects to the system URL rather than the alias.
e.g.
entering
http://www.finalcutters.com/products/final-cut-studio/fans
without Global Redirect enabled, correctly goes to the panel page but with the module enabled, it incorrectly redirects to
http://www.finalcutters.com/node/1741/fans
Any idea why this is happening?
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedNow I can see that Global Redirect doesn't work in this situation because those URL aliases don't actually exist.
Fixed it by installing the http://drupal.org/project/subpath_alias module and applying the #34 patch from #346911: Redirect Loop and custom_url_rewrite ignored
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedSpoke too soon. That half fixed it. At least the aliased path no longer redirects to the system path, but a system path such as /node/1741/fans doesn't redirect to /products/final-cut-studio/fans, so I guess the issue with Global Redirect still remains.
Comment #3
nicholasThompsonIs there an alias for that URL, if not then GR cannot redirect. How does Drupal resolve
/products/final-cut-studio/fans
to/node/1741/fans
?Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedNo there isn't an alias for that URL - it's assigned as path (/node/%node/fans) to custom page in Pages (panels).
Comment #5
nicholasThompsonok - so node/%node/fans is the source URL, handles by Panels... Thats fine.
How does Drupal know that
products/final-cut-studio/fans
resolves tonode/1741/fans
?There must be an alias or URL rewriting script somewhere?
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedSorry I've no idea, Panels (or perhaps Ctools handles it).