Tags:
create new tag
, view all tags

Feature Proposals » Parameterized variables in the redirectto parameter

Summary

Current State: Developer: Reason: Date: Concerns By: Bug Tracking: Proposed For:
AcceptedProposal MahiroAndo AcceptedByReleaseMeeting 2016-11-15     KampalaRelease

Edit Form

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

Motivation

redirectto can contain $variable parameters that come from the URL parameters (or POSTed form fields). It is more ideal to be able to use $topic and $web to retrieve the topic/web names that have just been saved, so that the redirectto parameter can be easily passed around when multiple levels of redirections and/or form submissions are involved. This is useful especially when the topic name is dynamically determined (e.g. using AUTOINC or JavaScript).

Description and Documentation

Th value of redirectto can contain $topic and $web.

Below is an example usage:

Field Value
redirectto TopicAfterSave?savedTopic=$topic;savedWeb=$web
Note: the entire value of the redirectto should be properly URL-encoded when it is used as a URL parameter.

The same variables are applicable to SAVEREDIRECTTO preference variable. (SetRedirecttoByPrefVar)

Examples

Impact

WhatDoesItAffect: Prefs, Rendering, UI

Implementation

-- Contributors: Mahiro Ando - 2016-11-15

Discussion

Proposal looks good.

-- Peter Thoeny - 2016-11-17

Accepted at KampalaReleaseMeeting2016x11x17 with $web and $topic (to be consistent)

-- Peter Thoeny - 2016-11-17

Thank you, I have updated the above description with $web and $topic.

-- Mahiro Ando - 2016-11-18

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2016-11-22 - PeterThoeny
 
  • 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-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.