Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Articles Legacy Router matches ANY URL ending in a number #20342

Closed
kavadas opened this issue May 10, 2018 · 2 comments
Closed

Articles Legacy Router matches ANY URL ending in a number #20342

kavadas opened this issue May 10, 2018 · 2 comments

Comments

@kavadas
Copy link
Contributor

kavadas commented May 10, 2018

Steps to reproduce the issue

  1. Set "URL Routing" to "Legacy" under Articles option.
  2. Visit front-end and enter ANY URL. At the end of the URL add the ID of a published article.

Example:
http://site-root/any/url/here/8 (assuming that article with ID 8 is published)

Or if you have "Use URL Rewriting" to "No":
http://site-root/index.php/any/url/here/8 (assuming that article with ID 8 is published)

Expected result

404 Page

Actual result

The article with the ID that matches the number at the end of the URL is rendered.

System information (as much as possible)

Joomla 3.8.7 (Fresh installation, no extensions)

Additional comments

The issue is caused by com_content legacy router (components/com_content/helpers/legacyrouter.php) .
Not sure if the legacy routers or the rest core extensions have the same issue.

@mbabker
Copy link
Contributor

mbabker commented May 10, 2018

That's in part why the legacy routers were replaced...

@brianteeman
Copy link
Contributor

I am going to close this as this was always an issue and is why we have a new router

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants