Closed (fixed)
Project:
Extended Path Aliases
Version:
7.x-1.0
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
30 Oct 2011 at 06:18 UTC
Updated:
4 Nov 2013 at 11:50 UTC
Jump to comment: Most recent
Comments
Comment #1
xanderol commentedI tried the module again on a fresh install and I'm still having the same problem.
The alias actually works fine for the site admin but it doesn't work for anyone else.
My user pathauto is set to “profile/[user:name]”. I have a view with a path of “user/%/messages” which has a tab that displays on the profile page.
If I'm logged in as the site admin the tab shows a path of profile/username/messages which is fine but if I log in with any other user the path of the tab is user/uid/messages.
If I'm logged in with any user other than the site admin and type in the url of profile/username/messages into the browser it will take me to that link and display the view just fine but if I click on the tab it will take me to user/uid/messages.
I tried the advice provided by http://drupal.org/node/1265698 by adding an alias of “profile” and system path “user” and logged in as a normal user and the tab shows profile/messages which is better than user/uid/messages I guess but it wasn't what I was hoping for.
Am I doing something wrong or is there no way to get the tab to display profile/username/messages for the users?
Comment #2
rdeboerThanks for your detailed report. Will look into it.
Rik
Comment #3
rdeboerHi xanderol,
Trying to reproduce this, but having trouble. Things seem to work fine for the user/%/view and user/%/edit tabs both for admins and everyone else (with the exception of the "My account" Edit tab, which requires an alias to be set for the system path /user, e.g. /myprofile).
So I'm assuming this is related to this View of yours:
".... which has a tab that displays on the profile page."
How does your tab end up on the profile page? What code generates that tab? If it hard-codes the URL to be /user/[uid]/messages, then that is what you get, similar to embedding the link "/user/123" in a piece text on your site.
Rik
Comment #4
xanderol commentedThe tab comes from a view with the path set to “user/%/messages”. This will place a tab on the user profile which links to the view. I guess views might hard code the link somehow but it seems odd that it does work for the admin but no one else.
Comment #5
nijk commentedI initially thought that I had the same issue, however after some testing I have discovered that in my case Path Alias XT works except for the logged in users' own account tabs. For all other user accounts it works as expected.
I am happy to log a new issue if required.
Comment #6
rdeboerShould be fixed in 7.x-1.x, 7.x-1.1 and later.