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

wim leers’s picture

Project: Panels Tabs » Panels
Version: 5.x-1.4 » 5.x-2.x-dev

Odd. 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!

glottus’s picture

You'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.

sun’s picture

Status: Active » Closed (duplicate)