You are here: Foswiki>Tasks Web>Item9910 (07 Jan 2015, GeorgeClark)Edit Attach

Item9910: SCRIPTURLPATH includes the protocol and hostname when called from MailerContrib's mailnotify.tmpl

pencil
Priority: Low
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: MailerContrib, SCRIPTURLPATH
Branches:
Reported By: DanDascalescu
Waiting For:
Last Change By: GeorgeClark
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
 

ItemTemplate edit

Summary SCRIPTURLPATH includes the protocol and hostname when called from MailerContrib's mailnotify.tmpl
ReportedBy DanDascalescu
Codebase 1.0.9
SVN Range
AppliesTo Engine
Component MailerContrib, SCRIPTURLPATH
Priority Low
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r3 - 07 Jan 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy