Router BUG

Phoca Gallery - image gallery extension
massikk
Phoca Member
Phoca Member
Posts: 40
Joined: 09 Nov 2019, 14:39

Router BUG

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Router BUG

Post 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
If you find Phoca extensions useful, please support the project
Post Reply