Project

General

Profile

Actions

Bug #3625

closed

Userlist uses CB profile Itemid when SEF is enabled instead of its own Itemid

Added by krileon over 12 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
Start date:
02 August 2012
Due date:
% Done:

100%

Estimated time:
2:00 h

Description

When SEF is enabled and you've a menu link to CBs Userlist as well as a menu link to CBs profile and you search on the Userlist it'll change the Itemid to the profile Itemid instead of keeping the Userlist Itemid. Works fine with SEF disabled.

https://www.joomlapolis.com/forum/153-professional-member-support/206739-search-redirects-to-my-profile#206839


Files

3625.patch (912 Bytes) 3625.patch krileon, 02 August 2012 20:16
Actions #1

Updated by krileon over 12 years ago

It's due to $_CB_framework->itemid() not being populated when SEF is enabled. As a fallback it'll use the CB profile Itemid, which is good.

Actions #2

Updated by krileon over 12 years ago

We use JFactory::getURI()->getVar( 'Itemid' ) to retrieve the Itemid from the URL, but this isn't populated when SEF is enabled.

Actions #3

Updated by krileon over 12 years ago

  • File 3625.patch 3625.patch added
  • Status changed from Assigned to Resolved
  • Assignee changed from krileon to beat
  • % Done changed from 0 to 100

Implemented fix to first check for current active menu link. If none then try to get the Itemid from the current URL.

Actions #4

Updated by krileon over 12 years ago

Alternative is to simply pull Itemid from $_REQUEST, which maybe a better approach.

Actions #5

Updated by beat about 12 years ago

  • Priority changed from Normal to High
Actions #6

Updated by beat about 12 years ago

  • Status changed from Resolved to Closed
  • Estimated time set to 2:00 h

Fixed as suggested in r1876 .
Thank you Kyle.

Actions

Also available in: Atom PDF