I have a panel set up
- single column
- path set to 'user/%' to appear as the user profile
- default panel style set to 'tabs'
- two panes added, each an established mini-panel: "About Me" and "My Posts"
Everything appears as desired at (for example) mysite.com/user/glottus (I see the "About Me" and "My posts" tabs that I want), but the tabs have URLs of :
mysite.com/#tabs-user-profile-userprofile-1
mysite.com/#tabs-user-profile-userprofile-2
They SHOULD be:
mysite.com/user/glottus#tabs-user-profile-userprofile-1
mysite.com/user/glottus#tabs-user-profile-userprofile-2
When clicking on the second tab, I see what I expect for a moment, but then get redirected to the site's main page. Only manually adjusting the URL to be mysite.com/user/glottus/#tabs-user-profile-userprofile-2 gets me a stable look at what I expected.
Also, I discovered that by hitting my browser's "Back" button (after the redirection), I can see the second tab/mini-panel content without bouncing to the main page again, even though the path appears to be mysite.com/#tabs-user-profile-userprofile-2.
I can't figure out how to get each of the tabs to keep the 'user/username' portion of the URL.
What am I missing here?
Comments
Comment #1
wim leersOdd. That seems like a bug in Panels, or in Tabs (which is part of the jstools module).
I've really got no idea what's happening here though. And I don't have time soon to look into it deeper soon, so I'm afraid you'll have to dig deeper yourself!
Comment #2
glottus commentedYou're right. With some time to dig in deeper, I found that it seems the jstools tabs module was outputting the destination without the request URI information in the link.
I made a minor edit to the jstools tabs.module to include request_uri() in the output (see http://drupal.org/node/264224), but I find it odd that nobody else seems to have had problems with this issue.
Comment #3
sunMarking as duplicate of #264224: Tabs missing request URI information, faulty destination