• Home
  • Get help
  • Ask a question
Last post 1 hour 25 min ago
Posts last week 81
Average response time last week 4 hours 29 min
All time posts 67919
All time tickets 10499
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#1311 – assigning non sef urls

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Wednesday, 04 November 2015 17:08 UTC
a3618096
Hi

I just typed out a long message only to get an access denied message when posting(!), so here's hoping this works second time around.

When creating a new article (or category list, seemingly anything!) multiple non-sef urls are created despite the layout being set as the sole option, "default". For example:

1 index.php?option=com_content&Itemid=435&id=98&lang=en&view=category
2 index.php?option=com_content&Itemid=2056&id=98&lang=en&view=category
3 index.php?option=com_content&Itemid=2059&id=98&lang=en&view=category

itemid=435 seems to be a clone of the homepage modules and layout, which I don't want at all. 2& 3 seem to be identical to eachother. I would want 2 or 3 to be set as the main non-sef url but currently 1 is always being set as the main non-sef url for the sef url.

I strongly suspect this is a Joomla! behaviour and sh404SEF is just assigning the first URL it is passed, but it's driving me mad and has me baffled. I don;t know why Itemid=435 is being created.

Any help would be much appreciated!

Thanks
Wednesday, 04 November 2015 17:13 UTC
wb_weeblr
Hi

I strongly suspect this is a Joomla! behaviour and sh404SEF is just assigning the first URL it is passed,
Yes, Joomla creates all URLs on your site, the non-sef URLs. sh404SEF simply records them and turns them into SEF, then passes them back to Joomla for display or whatever the use can be.

itemid=435 seems to be
435 is the id of one of your menu item. If you look up all your menu items, you'll see which menu item it is.

2& 3 seem to be identical to eachother
Ther correspond to 2 different menu items, but probably you have assigned the same modules and templates to both menu items, so they look identical.

I would want 2 or 3 to be set as the main non-sef url but currently 1 is always being set as the main non-sef url for the sef url.
Well, what happens when you try to set the 2nd or 3rd one as the "Main URL" using the "Duplicates" feature?

Rgds
 
Wednesday, 04 November 2015 17:51 UTC
a3618096
435 is the id of one of your menu item. If you look up all your menu items, you'll see which menu item it is.
It is the "Home" menu item. However no matter what menu I seem to assign new articles too (and I have tested others), it still shows modules which have been set to only show on "Home". Odd.

Well, what happens when you try to set the 2nd or 3rd one as the "Main URL" using the "Duplicates" feature?
Oh I can change it just fine, but as I have thousands of articles to create I'd rather not have to manually change each one each time(!)

Wednesday, 04 November 2015 18:54 UTC
wb_weeblr
Hi

However no matter what menu I seem to assign new articles too (and I have tested others)
What do you mean? How do you "assign" an article to a menu item? If you have thousands of articles, you're not going to have menu items for each, right?

Rgds
 
Thursday, 05 November 2015 10:58 UTC
a3618096
Hi

That is correct, but my understanding of sh404SEF is that it will only create a SEF url once the link has been passed to it by Joomla!. Therefore the page needs to have been visited or have the non-sef link present initially.

So if I have a menu-item(s) with category lists which automatically include all articles withing that category, this should then allow sh404SEF to create the SEF URL. However, the main non-sef URL being chosen is the one relating to the Home page modules.

I hope that makes sense?
Friday, 06 November 2015 08:58 UTC
wb_weeblr
Hi

Therefore the page needs to have been visited or have the non-sef link present initially.
Not exactly. If you actually visit the page directly, you will get a 404 because the URL has never been displayed.

What needs to happen is that link to the page is displayed, not the page itself.
So if I have a menu-item(s) with category lists which automatically include all articles withing that category, this should then allow sh404SEF to create the SEF URL.
Assuming this menu is displayed somewhere on a page, yes, the links would be created.

However, the main non-sef URL being chosen is the one relating to the Home page modules.
We don't choose anything. The first link sent to sh404SEF is considered the "Main" one. This means that on some of your pages, you have links to those categories, pages,.. without an Itemid (ie a menu item identifier). This causes Joomla to append the current menu item. As those links are probably on the home page (a module?), then you get the Itemid of the home page inserted by Joomla in the non-sef link.

Rgds
 
Friday, 06 November 2015 11:48 UTC
a3618096
I opted to for a poor choice of word when I said "choose". I know you were not choosing the "main" link but just picking up on the first one being sent.
Your information has assisted me, I've resolved my issue. Thank you.
Friday, 06 November 2015 13:15 UTC
wb_weeblr
Hi

Glad to hear that. Closing this ticket now, feel free to open a new one as needed. If you do so, please mention this ticket number in the new one.


Rgds
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.