• Home
  • Get help
  • Ask a question
Last post 8 hours 22 min ago
Posts last week 89
Average response time last week 30 min
All time posts 67739
All time tickets 10468
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.

#8355 – URL rewriting for "filter_tag" feature

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, 06 December 2021 09:28 UTC
persilou

Hi,

Joomla 3.10.3 / SH404 4.23.3.4280
(I can write in french if it's easier to understand)
In the Menu Manager, there is a new feature which allows to create a "blog category" page and chose to show only articles from the selected category with a specific tag (see attachment).

However, I noticed that this kind of link is not properly rewritten, or not rewritten at all (ex : category-1/?filter_tag[0]=2307 ), but more annoying, it creates conflicts between several urls of this kind :
- for example the tag's name used for the title of the page is the same (most of the time, the first which was rewritten) for every page using this feature with different tag.

first url :        category-1/?filter_tag[0]=1 : title is tag_1
second url : category-1/?filter_tag[0]=2 : title is tag_1
Breadcrumbs seems lost the same way too.

No problem with SH404 turned of and native Joomla rewriting on :

first url :        category-1/tag-1 : title is tag_1
second url : category-1/tag-2 : title is tag_2
Breadcrumbs is ok

Is there something I can do to solve this problem, or is it a "bug" to be solved ?

Thanks for your help

Monday, 06 December 2021 09:59 UTC
wb_weeblr

Hi

However, I noticed that this kind of link is not properly rewritten, or not rewritten at all

This is as designed. As one can add many, many tags here, automatically computing a fully SEF URL does not make sense (it could easily be hundreds of characters long) so we just keep the tags as query vars. You can manually make a custom URL if you so desire.

first url :        category-1/?filter_tag[0]=1 : title is tag_1

second url : category-1/?filter_tag[0]=2 : title is tag_1

This is not exactly related to tags and can happen with any set of URLs. Joomla decides on title ( and template and other things) based on the menu item id ("Itemid") in the non-sef URL. As the category_1/ URL is the same for both tags, the menu item and the title and other elements atatched to the menu are the same.

The only workaround here is to manully customize URLs for one or more of these URL, including the "filter_tag[0]=1" in the non-sef part.

Note that you will also need to manually customize the corresponding paginated URLs as well, if there are any.

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 
Monday, 06 December 2021 12:51 UTC
persilou

thanks for your reply and explanations

I tried to make a manual custom url in SEF URLS:
URL SEF : exempletestblabla.html
URL non-SEF: index.php?option=com_content&view=category&layout=blog&id=132&filter_tag[0]=2420
No effect, no rewriting, no redirection, I still have this : category/?filter_tag[0]=2420
(I purged URLS SEF, and the name of the SEF url I chose for this example is not related to any existing category or content)

What I don't understand is the native Joomla SEF doesn't seem to be lost with this pages, good url, good title, good content etc. By any chance, is there a way to disable SH404 only for these urls ?



Monday, 06 December 2021 13:12 UTC
wb_weeblr

Hi

What I don't understand is the native Joomla SEF doesn't seem to be lost with this pages, good url, good title, good content

There is no relationship between how the Joomla router works and how sh404SEF works. Whatever happens with Joomla SEF has no bearing or relationship at all with what happens with sh404SEF.

I purged URLS SEF

There's no reason to do that. It actually causes more problems in terms of menu item management.

URL non-SEF: index.php?option=com_content&view=category&layout=blog&id=132&filter_tag[0]=2420

I don't see any menu item id in that non-sef URL so indeed it's unlikely to work. But I don't know either which links you have on your site, whether these links are menu items or links in content, etc so really hard to say anything here.

So I would suggest:

- use only full and real links, no "samples", including the full and real domain.

- list the menu item involved or show me which links are giving this problem.

- then we can start deciding what the non-sef URL should be

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 
Monday, 06 December 2021 14:27 UTC
persilou

ok, thanks again. My mistake was to think "non SEF url" was the one we can see in the menu manager (when we create a menu link).

The manual rewriting works perfectly now, but as you mentionned, I have to manage with the corresponding paginated URLs if I decide to keep it

thanks a lot for helping!

Monday, 06 December 2021 16:41 UTC
wb_weeblr

Hi

Well, SEF and non-SEF are a complicated topic in Joomla (basically the one sh404SEF has been trying to solve for quite a while now!).

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.

If you created any superadmin account for us, be sure to delete or block it now to avoid unnecessary risk in the future.

4SEO is our new, modern, all-in-one SEO extension for Joomla 3 and 4. It automatically handles most of today's SEO work: meta data, structured data, sitemaps, content replacement and more!

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 
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.