[VANITY-19] Multiple domains Created: 15/Nov/16  Updated: 29/Nov/16  Resolved: 29/Nov/16

Status: Closed
Project: Vanity URL app
Component/s: None
Affects Version/s: 1.3.2
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Adam Spickard Assignee: Frank Sommer
Resolution: Not an issue Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux


Issue Links:
relation
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)
Date of First Response:

 Description   

Hello,

We are currently running Magnolia EE v5.3.7 with Vanity Url module v1.3.2 . In our web server we have multiple sites that are associated with multiple domains. We use Apache rewrites to point requests to our multiple sites. With the Vanity app if we create a Vanity url and a request is received from that vanity url we are limited to our defaultBaseUrl as the URL prefix when the URL is constructed (i came upon this in the DomainNamePathTransformer class). We want to be able to construct the URL with the domain the target site is associated to.

Ex.
defaultBaseUrl: www.company.com

Vanity url: /join
Target: /sitename/dir/join-us.html

Vanity url: /services
Target: /othersitename/dir/services.html

Instead when a request is received for
www.othercompany.com/services
the URL changes to
www.company.com/othersitename/dir/services.html

Thanks



 Comments   
Comment by Frank Sommer [ 16/Nov/16 ]

@aspickard This feature should be already included in the module. You have to configure your different sites with domains in Magnolia and reference the site in your vanity url item.

The vanity-url module uses the standard link rendering from Magnolia. So it respects the domain configuration in the multisite module. So if you set for your othersitename site the domain www.othercompany.com then should Magnolia create the target URL www.othercompany.com/othersitename/dir/services.html.

Generated at Mon Feb 12 11:10:07 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.