Project

General

Profile

Feature proposal #7909

Improve SEF URL construction to better utilize menu Itemids

Added by krileon 6 months ago. Updated 6 months ago.

Status:
Assigned
Priority:
Normal
Assignee:
Target version:
Start date:
03 April 2020
Due date:
% Done:

0%

Estimated time:

Description

Currently group links when using SEF typically just use the first available GJ menu item. This needs to be more accurate. CBs core Itemid function likely can't handle the desired usage so likely needs to be extended to support testing against fallback cases. The below ideally is how it should be constructing.

1. Does the group have a menu item directly? Yes, then use it. No, then continue.
2. Does the group have a category? Yes, then check if a Category menu item exists and use it. No, then continue.
3. Does the group belong to me? Yes, then check if My Groups menu item exists and use it. No, then continue.
4. Does an all groups menu item exist? Yes, then use it. No, then fallback to profile Itemid.

https://www.joomlapolis.com/forum/255-developer-members-support/242305-groupjive-router#317550

History

#1 Updated by krileon 6 months ago

This maybe resolved by proposed change in #7911.

Also available in: Atom PDF