?
avatar JamesShaver
JamesShaver
11 Oct 2016

Steps to reproduce the issue

Create a numeric category name, for example 2016. With SEF turned on, this will be seen as an article ID, and returns a 404 error. This can be worked around by aliasing the name as 'year2016'.

Expected result

The router should be able to tell the difference between category names and article IDs.

Actual result

System information (as much as possible)

Additional comments

avatar JamesShaver JamesShaver - open - 11 Oct 2016
avatar brianteeman
brianteeman - comment - 11 Oct 2016

The same is true for an article alias that begins with a number.

avatar dgt41
dgt41 - comment - 11 Oct 2016

Then, I guess, the field shouldn't validate with invalid data...

avatar mbabker
mbabker - comment - 11 Oct 2016

Who says it's invalid?

avatar dgt41
dgt41 - comment - 11 Oct 2016

Hypothesis...

avatar JamesShaver
JamesShaver - comment - 11 Oct 2016

Invalid, meaning that we need to instruct authors, "don't create articles or categories that start with a number... because Joomla can't understand it"? If that's the way it works, then authors shouldn't be able to create them that way.

avatar brianteeman
brianteeman - comment - 11 Oct 2016

That's where it gets tricky. If you have a single article called "2016
news" the alias will be "2016-news" which CAN cause issues but will not
always cause issues. For example it won't cause an issue if it is displayed
as a single article menu item because the alias will then come from the
menu. So not a simple thing.

avatar xtech86
xtech86 - comment - 29 Oct 2016

This is the same issue I've been having. Joomla! Shouldn't allow numeric starts to aliases. And instead send it to the end of the alias because it's too patchy otherwise.

avatar brianteeman
brianteeman - comment - 29 Oct 2016

As I stated above it all depends

avatar xtech86
xtech86 - comment - 29 Oct 2016

But it shouldn't be an if then maybe well kinda works solution. Adding it to the end solves the problem completely? Or failing validation for the user to edit, maybe saying alias cannot start with numeric values. This solves the problem once and all.

avatar mbabker
mbabker - comment - 29 Oct 2016

Imposing an arbitrary restriction because our code doesn't know how to handle the situation isn't a solution IMO.

avatar brianteeman
brianteeman - comment - 29 Oct 2016

Tony if you can come up with a solution that prevents those problematic
URLs without breaking sites with the ones that work then go for it. Its not
not being fixed because anyone is lazy

avatar Hackwar
Hackwar - comment - 4 Mar 2017

This has been fixed in the modern routing in 3.7. Please test there and then close this. ?

avatar brianteeman
brianteeman - comment - 10 Mar 2017

With the current status of the modern aka experimental router being uncertain please keep this open for now

avatar joomla-cms-bot joomla-cms-bot - change - 11 Mar 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 11 Mar 2017
avatar JamesShaver
JamesShaver - comment - 11 Mar 2017

Agreed, this should remain open until a stable release is established.

avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Apr 2017
Status New Confirmed
avatar brianteeman
brianteeman - comment - 18 Aug 2017

I am closing this as resolved in 3.8 which has the referenced router code

avatar brianteeman brianteeman - change - 18 Aug 2017
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2017-08-18 13:15:23
Closed_By brianteeman
avatar brianteeman brianteeman - close - 18 Aug 2017

Add a Comment

Login with GitHub to post a comment