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
Empty GET request causes errors and creates duplicates with different canonical URLs #8043
Comments
If you do, we will do it to the end.
|
A bit of a warning about just using a robots.txt to fix this issue. You need remember to robots.txt only controls crawling and not indexing. From https://support.google.com/webmasters/answer/6062608?hl=en.
If you are getting pages that are crawled with empty GET parameters. This could be caused by bad links on your site, so adding a robots.txt is not solving the root cause of the problem. Or it could just be an undesirable bot, which will probably ignore robots.txt anyway. |
Opencart 3.x.x.x
Empty GET request causes errors and creates duplicates with different canonical URLs
If the URL has empty:
page=
limit=
Duplicates with different canonical URLs:
<link href="https://demo.opencart.com/index.php?route=product/category&path=20" rel="canonical" />
<link href="https://demo.opencart.com/index.php?route=product/category&path=20&page=" rel="canonical" />
- This url is indexed!Fix Instruction
Fix in in future versions Opencart
Search:
if (isset($this->request->get['page'])) {
Replace:
if (!empty($this->request->get['page'])) {
etc..
The text was updated successfully, but these errors were encountered: