Penge Posted March 7, 2019 Share Posted March 7, 2019 (edited) Hello all I am running version 1.7.4.5 How do I remove "page=nn" in the URL on product pages ? "https://www.strazz.no/klaer/for-henne/kjoler/?page=2" This is very bad for the SEO as it is recognized as duplicate title. Thanks Petter Edited March 7, 2019 by Penge (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted March 10, 2019 Share Posted March 10, 2019 You can't, you're better off using rel=canonical in categories. Just set the url to the base category url, without querystring parameters Link to comment Share on other sites More sharing options...
DARKF3D3 Posted January 29, 2024 Share Posted January 29, 2024 On 10/3/2019 at 2:44 PM, NemoPS dice: You can't, you're better off using rel=canonical in categories. Just set the url to the base category url, without querystring parameters Hi Nemo, how parameters can be removed from category urls into canonical? I'm trying to remove pages like ?page=2 on PS8. Into /controllers/front/listing/CategoryController.php i found this but I can't figure out where it's added the page parameter. protected $category; public function canonicalRedirection($canonicalURL = '') { if (Validate::isLoadedObject($this->category)) { parent::canonicalRedirection($this->context->link->getCategoryLink($this->category)); } } /** * {@inheritdoc} */ public function getCanonicalURL() { if (!Validate::isLoadedObject($this->category)) { return ''; } return $this->buildPaginatedUrl($this->context->link->getCategoryLink($this->category)); } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now