Motivation
There are cases where {DefaultUrlHost} based URL is desirable.
Description and Documentation
SCRIPTURL{...} returns a URL based on the URL host currently accessed. For example, if a TWiki topic is accessed by
https://foo.exmaple.com/cgi-bin/view/Main/FizzBuzz
, SCRIPUTURL{...} value contains
https://foo.example.com
regardless of {DefaultUrlHost}.
If a TWiki site is accessible by multiple host names, you may want to show a URL based on {DefaultUrlHost}.
Examples
Impact
Implementation
--
Contributors:
Hideyo Imazu - 2020-10-26
Discussion
Sounds good. I recommend to use
TWiki::isTrue() to have flexibility like
on,
1,
true vs.
false,
off,
0,
no. For docs, just one is likely sufficient.
--
Peter Thoeny - 2020-10-26
Sure. Just like the
master parameter, the
defaultUrlHost parameter's value will be processed with
TWiki::isTrue().
--
Hideyo Imazu - 2020-10-27