[MGNLADVCACHE-65] Fragment URIs don't support i18n Created: 08/Nov/15  Updated: 15/Apr/16  Resolved: 30/Nov/15

Status: Closed
Project: Advanced Cache
Component/s: None
Affects Version/s: 1.7.1
Fix Version/s: 1.7.2

Type: Bug Priority: Critical
Reporter: Richard Gange Assignee: Roman Kovařík
Resolution: Fixed Votes: 0
Labels: i18n, quickwin, support
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Sprint: Kromeriz 21
Story Points: 3

 Description   

When requesting a translated version of a page with dynamic components in a single site multi-language setup you get the default language. It appears that the links being created in the dynamic injection tags doesn't reflect the language.

<mgnl:injecturi target="/hello-magnolia~mgnlArea=datetime~" X-Magnolia-Cache="ttlValue=0,CacheKeyGenerator=,">
</mgnl:injecturi>

In the case of German for example we should have :

<mgnl:injecturi target="/de/hello-magnolia~mgnlArea=datetime~" X-Magnolia-Cache="ttlValue=0,CacheKeyGenerator=,">
</mgnl:injecturi>


 Comments   
Comment by Roman Kovařík [ 13/Nov/15 ]

The cause: info.magnolia.sitemesh.content.inject.InjectUriTag#getUrl constructs url from the original browser URL but should use the current URL instead.

Generated at Sun Feb 11 23:10:40 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.