Item9910: SCRIPTURLPATH includes the protocol and hostname when called from MailerContrib's mailnotify.tmpl
Priority: Low
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: MailerContrib, SCRIPTURLPATH
Branches:
In
MailerContrib/templates/mailnotify.tmpl, I added the following line
This is SCRIPTURLPATH{"view"} from e-mail: %SCRIPTURLPATH{"view"}%.
The result is not just
/view
, but includes the protocol and host:
This is SCRIPTURLPATH{"view"} from e-mail: http://beta.wiki.company.com/view.
In topics, SCRIPTURLPATH{"view"} returns correctly just
/view
.
--
DanDascalescu - 27 Oct 2010
This is working as intended. The SCRIPTURLPATH macro returns absolute URLs when called from the command line context. Because there is no context of a browser, there is no base, and links all need to be absolute links.
--
GeorgeClark - 07 Jan 2015