[PAGES-217] Reintroduce setting of base tag Created: 12/Dec/19  Updated: 17/Dec/19  Resolved: 17/Dec/19

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

Type: Improvement Priority: Neutral
Reporter: Robert Šiška Assignee: Robert Šiška
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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: SPA Editor
Sprint: SPA Editor 12
Story Points: 1

 Description   

We need to set the <base> element when rendering SPA applications.

If e.g. Angular application that runs on http://localhost:8080/magnoliaAuthor/spa-page routes to '/home', the URL is rewritten to http://localhost:8080/home instead of http://localhost:8080/magnoliaAuthor/spa-page/home.

Correctly set <base> element fixes this. See: https://angular.io/guide/router#base-href


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