Hi guys, 
we need to produce a working external link via a scheduled job (this job send 
an email with a link, as a reminder..).
So, we are not in a WebContext.

In CE, no issues: defaultBaseUrl is used and there you can define also the port 
number.
E.g.: 

/server@defaultBaseUrl = http://localhost:8080
or
/server@defaultBaseUrl = http://www.mysite.com (in PROD)
or 
/server@defaultBaseUrl = http://dev.mysite.com:8080 (in DEV)

On those 3 environments, external links works pretty fine.

BUT in EE, the first found domain mapping value for the current site is used 
instead of defaultBaseUrl. And the port number can not be declared there..

In this way, external links will be generated *without* port number (or http/s 
configured schema!). 
Of course, we can develop a custom templating functions / component able to 
create such a link with a dedicated configuration, but I'm wondering how 
Magnolia currently support this feature, before developing something that 
already exists.

Thanks for your help and sorry for the long message!
Matteo

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=27da09a7-693a-472e-96e6-ce43daa8e3a3


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to