[MGNLRES-310] ResourceLinker might generate wrong URLs to resources when site has mapping with URIPrefix and is i18nized Created: 17/Jan/18  Updated: 29/Mar/22  Resolved: 06/Feb/18

Status: Closed
Project: Magnolia Resources Module
Component/s: None
Affects Version/s: None
Fix Version/s: 2.5.5, 2.6.1

Type: Bug Priority: Neutral
Reporter: Jaroslav Simak Assignee: Jaroslav Simak
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
is causing MULTISITE-84 Slash is incorrectly appended to reso... Closed
dependency
is depended upon by MULTISITE-80 URIPrefix doesn't cope with i18n Closed
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
Release notes required:
Yes
Date of First Response:
Sprint: Kromeriz 130, Kromeriz 131, Kromeriz 133
Story Points: 2
Team: Nucleus

 Description   

Issue is caused by function that is called on templatingFunctions object.

Function that generates the prefix must take into account:

  • context path
  • site name, if no matching domain is found
  • locale from the prefix must be ommited

Possible option is to extract part of code that generates prefix into a protected method and override it in MultiSite module.



 Comments   
Comment by Jaroslav Simak [ 24/Jan/18 ]

For Release notes:
Links to resources doesn't include language in the uri from now on.

Comment by Roman Kovařík [ 29/Jan/18 ]

Reopened: to be integrated to 5.5.

Generated at Mon Feb 12 06:49:26 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.