User tests: Successful: Unsuccessful:
Add (and enable by default) SEF url auto correction by redirecting to appropriate url.
Create an article in category and use aliases like:
cagetory: subcategory
article: qtestucat
Correct link for the article is /index.php/8-subcategory/2-qtestucat
You should have access only for correct urls.
And 404 or 301 at incorrect urls.
You can't access article by /index.php/8-subcategory/2-qtest
(?somevar=exists
)
it redirects you to /index.php/8-subcategory/2-qtestcat
(?somevar=exists
)
You can access article by /index.php/8-subcategory/2-qtest
(?somevar=exists
)
No it should not, as Itemid is respected.
But I will retest.
Category | ⇒ | Router / SEF |
Status | New | ⇒ | Discussion |
Ok, I've re-tested and yes, the situation is there:
plugin respects Itemid
and com_content
do not.
@brianteeman so do you think system should encourage settings that are bad for SEO by default?
Or should I change joomla installation SQL so plugin is enabled on install? It will fix the issue for new sites and allow to preserve this 'bad feature' for existing installations by default?
@alex7r just wondering if this was a PR you're going to further pursue?
From experience, the need to end up with 2 urls for otherwise identical items is common enough to not apply the PR. This might be due to a need to assign different modules to different pages, or show different templates for some reason (eg main template vs a stripped back landing page)
Autocorrection I know would be something I'd turn off if it was a default feature, and if I did need a redirection in place, I'd just manually add it in the Redirect component, so I'm possibly not a target audience for what you're attempting to do.
Happy to discuss more what it is the PR is trying to achieve.
Looking at this PR as part of a "Outstanding PR Status List" exercise to work on reducing the number of outstanding PR that have been otherwise orphaned, neglected or forgotten instead of being merged. See Glip Bugs & Fun @ Home channel for more information.
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-03-18 13:49:41 |
Closed_By | ⇒ | laoneo | |
Labels |
Added:
?
Information Required
Removed: ? |
Sorry that it has taken so long to move on with this pull request. As time was flying, Joomla evolved and new features should be ported to 4. Would you mind to rebase your pr to the latest 4.2 branch? Also update your code to use the namespaced classes. In the meantime I close the pr. When ready to be tested with Joomla 4.2, don't hesitate to reopen again. Thanks for your contribution, making Joomla 4 better.
Category | Router / SEF | ⇒ | Administration Language & Strings Front End Plugins Router / SEF |
Category | Router / SEF Administration | ⇒ | Administration Language & Strings Front End Plugins Router / SEF |
this works as described and its great
but it has other consequences which may or not be desired
create two menu items to exactly the same thing eg category list to the same category
before this pr you would have /menu1 and /menu2
after the pr /menu2 would always redirect to /menu1
Also I think that because this can change the current behaviour of a site as above then it should be disabled by default