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

feat: Allow Intershop CMS Freestyle HTML component links to sub-categories #672

Merged
merged 5 commits into from
May 4, 2021

Conversation

jometzner
Copy link
Collaborator

PR Type

[ ] Bugfix
[X] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no API changes)
[ ] Build-related changes
[ ] CI-related changes
[ ] Documentation content changes
[ ] Application / infrastructure changes
[ ] Other:

What Is the Current Behavior?

In a Freestyle HTML CMS component if you create a link to any sub-category (level 2 or higher) you will get a page not found error when rendering the resulting markup.

This is because links like this category://categoryid@catalog-domain are translated to simple category routes not following our uniqueCategoryId scheme. For instance above category link is translated to '/catcategoryid`.

What Is the New Behavior?

category://x@y links are now translated into a new category page route called /categoryref/:categoryRefId. The category page component is left untouched by this. Resulting in canonical URLs no matter how you reached a particular category detail page.

Does this PR Introduce a Breaking Change?

[ ] Yes
[X] No

Other Information

Only compatible with ICM version 7.10.17 or higher

@shauke shauke added this to the 0.30 milestone Apr 27, 2021
@shauke shauke self-requested a review April 27, 2021 09:11
@jometzner jometzner removed their assignment Apr 27, 2021
@jometzner jometzner removed their assignment May 3, 2021
@shauke shauke merged commit 1d7ea7f into develop May 4, 2021
@shauke shauke deleted the fix/category-ref-store branch May 4, 2021 16:28
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.

2 participants