• Home
  • Get help
  • Ask a question
Last post 7 hours 36 min ago
Posts last week 81
Average response time last week 4 hours 29 min
All time posts 67915
All time tickets 10498
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.

#2775 – Setting a main url

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.
Tuesday, 27 September 2016 17:23 UTC
christianrieger
 Hi!

Often a unique page of my website is accessed by different urls. I normally want to set the url with the main menu item id as the main url. Because then a navigation menu used on the right sidebar of my template shows me the active open menu item of the page. So I was going to find the duplicates a sef url and changed the main url of the non sef url by finding the main menu item id. So far this works and the sidebar navigation menu shows me the active open menu of the page. The problem is that the website is in development and I sometimes have to purge urls. Afterward all my set main urls are gone.

I've read about setting canonical tags in your docs. But I can't believe that I have to setup hundreds or thousands of canonical tags to fix this problem. So I decided to ask you first.

For better understanding here's an example:

sef url:

abi-check/1-analysis.html

duplicates:

index.php?option=com_k2&Itemid=148&id=323&lang=de&task=category&view=itemlist
index.php?option=com_k2&Itemid=3900&id=323&lang=de&layout=category&task=category&view=itemlist
index.php?option=com_k2&Itemid=3697&id=323&lang=de&layout=category&task=category&view=itemlist

I want to set the url
index.php?option=com_k2&Itemid=3697&id=323&lang=de&layout=category&task=category&view=itemlist
as the main url because of the main menu itemid 3697

When I do so the sidebar navigation menu works as it should and shows the active sub menu items.

Purging the urls makes the setup undone and the sidebar navigation menu no longer works as desired.

I never had this problem in the past. Maybe I have a wrong general setup to be changed?

Many thanks for your help in advance!

Christian

Sorry, I forgot the link to the site:

http://www.xxxx.de/abi-check/1-analysis.html
 
Tuesday, 27 September 2016 17:47 UTC
christianrieger
In case you need super admin login:

http://xxxx.de/administrator/

htaccess login:

user: xxxx
PW: xxxx

Backend login:

user: xxxx
PW: xxxx
 
Wednesday, 28 September 2016 08:07 UTC
wb_weeblr
Hi

I've read about setting canonical tags in your docs. But I can't believe that I have to setup hundreds or thousands of canonical tags to fix this problem. So I decided to ask you first.

Canonical has nothing to do with that. It will not change anything to the page being rendered or the internals of Joomla (menu item management is purely an internal Joomla thing).

The problem is that the website is in development and I sometimes have to purge urls. Afterward all my set main urls are gone.
Yes, that's expected. "Main URL" selections cannot be carried over a purge, as basically URLs are (supposed) to not be the same after a purge.

There are 2 things you can do that may help:

1 - Track the real source, and find out why Joomla is creating links with incorrect Itemids (may be tricky). Sometimes it's just bad links in your content, where you did not specify an Itemid in the non-sef link. Many times it's modules or extensions simply not using any Itemid. There may not be any fix for that.
2 - You may be able to use the Itemid override added in last version, where you can force an Itemid to be used per component. See the "By components" tab of sh404SEF configuration for that. This may however break other links, so need to test.

Rgds
 
Wednesday, 28 September 2016 10:41 UTC
christianrieger
All the duplicates of non set urls are with k2 item ids for example from category list views of a summary page. So I assume the problem must have something to do with the k2 component.


I changed the sh404sef configuration with the k2 component from

"standard routine" and "overwrite set_ext" to

"use joomla router" and "use router.php with menu entry"

Hope that this is what you meant with 2?

The result is now to my needs. But I think that this setting can not consider all the title tags I've written with sh404sef. I still can see the title tags though I deleted all cache and purged urls of cdn cloudflare. And I'm wondering about this 'cause I always thought the setting "use joomla router" with a component makes sh404sef completely ignoring this component concerning set urls?

Regards
Christian
 
Wednesday, 28 September 2016 10:55 UTC
wb_weeblr
Hi

All the duplicates of non set urls are with k2 item ids for example from category list views of a summary page. So I assume the problem must have something to do with the k2 component.
Possibly, or any module or even direct links you have manually inserted in your content.

I changed the sh404sef configuration with the k2 component from



"standard routine" and "overwrite set_ext" to



"use joomla router" and "use router.php with menu entry"



Hope that this is what you meant with 2?
Absolutely not. Please revert back those settings to what they were. You have basically dsiabled sh404SEF for K2.

I mentioned: the Itemid override added in last version:



This what you can use to set a specific Itemid for your K2 pages, either all of them or only those which lacks an Itemid.

Rgds
 
Wednesday, 05 October 2016 15:30 UTC
christianrieger
Hi!

By chance I found out that a not installed osmap k2 plugin was the reason why the accordion sidebar menu didn’t show the active menu items. The assigned k2 duplicates don't have/didn't have any influence on this matter.

Thank you very much for your support!

Regards,
Christian
 
Wednesday, 05 October 2016 15:33 UTC
wb_weeblr
Hi

Wow, that was far fetched! Thanks for letting us now, something to keep in mind!

Rgds
 
Thursday, 20 October 2016 05:34 UTC
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
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.