• Home
  • Get help
  • Ask a question
Last post 8 hours 54 min ago
Posts last week 89
Average response time last week 30 min
All time posts 67735
All time tickets 10467
All time avg. posts per day 21

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.

#5688 – Correct SEF for tags

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.
Monday, 25 March 2019 00:57 UTC
dlucio
 in this site, my tags are created like this

https://xxxx.network/en/tag/12.html

equivalnet to index.php?option=com_tags&id=12&lang=en&view=tag

I need them to be https://xxxx.network/en/tag/international-student.html or
https://xxxx.network/en/international-student.hml

12 is the tag Id given by Joomla
international-student is the tag alias


What should I do? I am using latest sh404SEF 4.15.2.3878 under Joomla 3.9.4
Monday, 25 March 2019 11:00 UTC
wb_weeblr
Hi

/tag/tag-title is what you should get and this is what i get with a standard Joomla installation.

The only possible issue I see here is that you non-sef link does not have an Itemid. Do you have a menu item (even if a hidden one) that links to those tags?

Best regards


 
Monday, 25 March 2019 14:27 UTC
dlucio
Yes, there are some menus items that point to some tags.

Is there a way to fix it, without disabling those menus?
Monday, 25 March 2019 14:38 UTC
wb_weeblr
Hi

This does not need fixing as it does not happen on other sites. We need to find out what's causing it on your site and not others.

The first thing to do is be sure that com_tag is NOT set to "Use Joomla router" and restored the default value of "Use default handler". If that does not restore behavior then we'll have to log in and try find what's happening.

Best regards
 
Monday, 25 March 2019 14:45 UTC
dlucio
It has been set as the default handler for a while, I haven't changed.

Here it is the server access:
u: xxxx
p: xxxx

https://xxxx.network/administrator/
The website has a Memcache caching, remember to flush the cache to see the applied changes.

Please only delete tag/ or tags/ SEF URLs, as there are some hand made customizations.
Monday, 25 March 2019 14:47 UTC
wb_weeblr
Hi

OK, where can I see a tag link? on which page?

Best regards
 
Monday, 25 March 2019 14:50 UTC
dlucio
At the bottom of any page (Useful links sections)
Monday, 25 March 2019 14:53 UTC
wb_weeblr
Hi

Somethings's odd: I found just one link, /en/tag/resume.html yet this link

Best regards

 
Monday, 25 March 2019 14:56 UTC
wb_weeblr
And even stranger: no tag has been defined?

[xxxx]

Best regards
 
Monday, 25 March 2019 14:57 UTC
dlucio
oh my good, I gave you wrong website

here it is the right access:
https://xxxx.network/administrator

same credentials
Monday, 25 March 2019 14:59 UTC
wb_weeblr

Where those "Useful links" defined? don't seem to be a module?

Best regards
 
Monday, 25 March 2019 15:06 UTC
dlucio
They are using a gantry template, go to

Extensions -> Tempalte -> Styles
clicn on any Galatea tempalte

Then, switch to "Base Outline" (left top dropdown)
After that, go "Layout" tab

And look for the "Useful links" at the "bottom" section. You will find the non-SEF URL's there.

Please note that the website is multilingual.
Monday, 25 March 2019 15:10 UTC
wb_weeblr

Things do not seem consistent: /en/tag/10.html is supposed to be "Visit Canada" but if I look at com_tags, tag width ID= 10 is "Tourist".

Anyway, I deleted the URL /en/tag/10.html in sh404SEF and the link is still there exactly as it was before on the front end. However it does not show anymore in the SEF URL manager.

So that link on your front site is not created by sh404SEF?
 
Monday, 25 March 2019 15:12 UTC
dlucio
/en/tag/10.html is supposed to be "Visit Canada" but if I look at com_tags, tag width ID= 10 is "Tourist". is okay

go to tag manager, you will see Tourist with ID 10 "Visit Canada" is just a Label, because of Tourists actually Visit Canada

Remember to flush the cache
Monday, 25 March 2019 15:30 UTC
wb_weeblr
I disabled the cache, you cannot debug with it.

Yet there's still a mix up due to caching I think. The tag link is actually correctly created and found in the URL list:



At first I thought the missing menu item has to do with it, so I added &Itemid=408 to the non-sef URL in the template, cleared everything, reloaded the page: the /en/tag/10.html link was back it's not the one entered in the template. It does not have the &Itemid=408 nor the rest of the non-sef URL (&tag_list_language_filter=en-GB).

So I searched the SEF URL list for "Tourist" and sure enough I found the SEF URLs properly created. As the non-SEF URL now has &Itemid=408, the link is shortened to /en/tourist.html

I then removed the &Itemid=408 and I could see that:

- /en/tag/10.html is still created (but without the tag_list_language_filter parameter in the non-sef URL)
- the correct URL is created, /en/tourist.html but the non-sef URL still has the &Itemid=408 in the non-SEF URL, even though deleted it

and the template is never using the correct URLs generated by sh404SEF.

so I took the last possible test and disabled sh404SEF: the template behaves (nearly) the same: instead of /en/component/tags/tag/tourist, it uses: https://xxxx.network/en/component/tags/tag/10.html

So I'm not sure exactly what's going on here but I don't think the problem is related to sh404SEF as it happens the same when sh404SEF is disabled.

NB: I enabled back sh404SEF and enabled back Caching in Joomla config.

Best regards


 
Monday, 25 March 2019 15:33 UTC
dlucio
Those tags /es/tourist.html for example, are done because there is a menu

but, if you see the gantry particule, the same URL doesn't use it, it is using the numeric id.

I know that if I disable the menus, the tags are created correctly.
Monday, 25 March 2019 15:34 UTC
wb_weeblr
Hi

I did not really say anything about menus, they don't matter. I said the same problem happens when sh404SEF is disabled.

Best regards

 
Monday, 25 March 2019 15:38 UTC
wb_weeblr

BTW, even though I removed the &Itemid=408 in the non-sef URL in the "Useful links" module, so as to restore site as it was, you should add it back and the same for all your non-sef tag links.

While checking this, I noticed there were plenty of non-sef with varying Itemids created for most tags as Joomla is trying to find the correct Itemid to use. Better set it up yourself.

Best regards
 
Tuesday, 09 April 2019 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.