Skip to content

Patch 1#1

Open
puntable wants to merge 2 commits intopetskratt:masterfrom
puntable:patch-1
Open

Patch 1#1
puntable wants to merge 2 commits intopetskratt:masterfrom
puntable:patch-1

Conversation

@puntable
Copy link
Copy Markdown

Correct URL for categories added with new method

cortopy and others added 2 commits April 9, 2015 12:32
Currently, this module doesn't work for pages which are not product views because $url is undefined. This avoids breaking non-product pages and returns current page with the appropriate redirect URL
Added new method in helperclass 'rewrittenCategoryUrl' to get correct URL for category
@sprankhub
Copy link
Copy Markdown
Collaborator

Thanks. Could you elaborate a bit what your changes do?

@puntable
Copy link
Copy Markdown
Author

I added new correct URL for category pages (rewrittenCategoryUrl()) and removed storecode from URL (substr($url, 0, strrpos($url, "?"));).

Still having problems with missing canonical on category pages :/

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants