Page 1 of 1

Router BUG

Posted: 10 Dec 2019, 10:58
by massikk
I'have found a BUG in phocagallery about Url Rewrite.
Category can be replace with any word and url work correctly.
Look:
https://www.phoca.cz/joomla3demo/category/2-horses
https://www.phoca.cz/joomla3demo/fsadud ... y/2-horses

Re: Router BUG

Posted: 10 Dec 2019, 16:23
by Jan
Hi, yes, you can even change it for your site e.g. to fit your language:
https://www.phoca.cz/documents/2-phoca- ... t/511-tips (3)

Regarding this topic. The purpose is always return the best result to the users so they don't get 404:

- if the link inlcudes some ID, it is supposed - user want to see category or image. The category has priority over image
- if the link includes more IDs, the system tries to find category and its image id

So there is always try to display some outcome but not 404. But more important is, building the route. So in fact the second link will be never built with Phoca Galley so in fact it will never exist but if user get some corrupted link but it includes the ID, the system always will try to find the best result.

Our effort should not be saying "NO, you are wrong, nothing will be displayed for you" but to show the best matched outcome if it is possible.

Jan