The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Feb 08, 2012 12:38 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Apr 06, 2008 3:45 pm
Posts: 23
Have a problem with J1.7. and I suspect it's in 2.5 also Perhaps someone can explain what we're doing wrong.
We have SEF turned ON. and using .htaccess.
This problem does NOT occur when sef is OFF.

We have a menu item pointing to a com_content article.
We have a module that contains links to categories in our components, EG: com_mycomp.
When we open the page, all the itemIDs in the links of our module have the same Itemid as the selected menu, as it should be, BUT in J1.7 when we click the link, it checks if the component in the link is the same as the component on the alredy opened page, if the components are not the same, Joomla 1.7 nullifies the Itemid and the user is redirected to the homepage Itemid IE: Itemid=0 From what we can tell, the joomla core code does this.

basically as I understand it, if am on a com_content linked menu item. it shows as the selected menu.
but if I click the login module, then the selected menu item jumps.
If I have modules positioned on the right, they will jump to the left.
Why does it jump? it jumps to the first menu that it can find that has com_users component in the URL.
If it can't find one, it defaults to null. IE, Joomla completely removes the Itemid from the URL.


Workaround:
to fix the problem of modules moving.
1) create a new menu item. Name is unimportant.
2) Go to Module Manager and create a new Menu type module.
Link the module to the menu created in 1) when creating it.
Leave the Module unpublished.
3) Open that new menu, and add a new item of type com_mycomp.
Now, when you click on links in the mycomp modules, they won't drop off.
This is SEF caused
SEF checks the components in the links for selecting the Menus. It looks at the itemid in the link you've clicked, then it looks for the menu that has the COMPONENT in that link and activates that menu.

friggin weird
Joomla sef can't be this broken.


Last edited by osdcs on Wed Feb 08, 2012 1:51 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Wed Feb 08, 2012 12:54 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Sat Apr 05, 2008 9:58 pm
Posts: 23361
Location: @Webdongle
I have one site that works with 'Search Engine Friendly URLs' set No and one where the non SEF links are broken (404) Both are upgraded sites, the one that's broke is in a sub directory the one that works is a sub domain.

Addendum
The site on the subdomain works with 'Search Engine Friendly URLs' set No when accessed via http:/site.com/subfolder

_________________
http://weblinksonline.co.uk/joomla-faq.html


Top
 Profile  
 
PostPosted: Wed Feb 08, 2012 1:46 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Apr 06, 2008 3:45 pm
Posts: 23
How is this related to my initial comments in this topic?


Top
 Profile  
 
PostPosted: Wed Feb 08, 2012 1:55 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Sat Apr 05, 2008 9:58 pm
Posts: 23361
Location: @Webdongle
Whoops it's the opposite way around :-[

OK so when SEF is On then you get errors when you click a menu item
What about 'Use URL rewriting' Yes or No ?

Have uncomented 'RewriteBase in .htaccess ?

Have you checked that mod_rewrite works on your server ?

Is it a Linux server ?

_________________
http://weblinksonline.co.uk/joomla-faq.html


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 



Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group