Tags:
create new tag
view all tags

Feature Proposals » SCRIPTURL{... defaultUrlHost="on" ...} to yield a {DefaultUrlHost}-based URL

Summary

Current State: Developer: Reason: Date: Concerns By: Bug Tracking: Proposed For:
AcceptedProposal HideyoImazu AcceptedBy7DayFeedbackPeriod 2020-10-26   TWikibug:Item7921 LimaRelease

Edit Form

TopicSummary:
CurrentState:
CommittedDeveloper:
ReasonForDecision:
DateOfCommitment:   Format: YYYY-MM-DD
ConcernRaisedBy:
BugTracking:
OutstandingIssues:
RelatedTopics:
InterestedParties:
ProposedFor:
TWikiContributors:
 

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

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2020-11-06 - HideyoImazu
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.