[PAGES-573] Replace workaround to create i18n URIs in page editor Created: 14/Mar/22  Updated: 26/Aug/22

Status: Open
Project: Magnolia pages module
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Roman Kovařík Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
caused by PAGES-563 Page editor status uses deprecated me... 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)
Epic Link: AuthorX improvements
Team: AuthorX

 Description   

PAGES-563 removed a usage of deprecated method with hardcoding the original implementation of the method into PageEditorStatus.

We know have a replacement method introduced by MAGNOLIA-8311 we can use instead of the copy/paste.

String contextPath = webContextProvider.get().getContextPath();
String link = LinkUtil.createAbsoluteLink(node);
link = StringUtils.removeStart(link, contextPath);
return contextPath + (locale == null ? link : i18NAuthoringSupport.toI18NURI(link, locale));

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