create new tag
, view all tags
How about a allowing pagings redirect (directly) to other pages?

The page that is redirected to, should then display the page it's redirected from. UseModWiki also has implemented this, see: UseMod:PageRedirect.

See WikiWord for a nice example why to use a redirect!

  • Although I agree that a redirect page is useful, I think that the solution given in TopicNotFoundInThisWeb is a better solution than having redirects to duplicate named topics.

-- HansDonner - 23 Sep 2001

Looks to me like the page you redirect to should as you say display a link to the page it's redirected from, clicking this should allow and edit or the original page.

It would be easy to try this as a plugin:

  • Looked for %REDIRECT{topic="xxx"}%
  • Redirect to xxx topic adding ?redirectedfrom=oldtopic to url

  • Expand %REDIRECTFROM% to be equal to an edit link based on redirectedfrom

-- JohnTalintyre - 24 Sep 2001

This makes sense. Only the %REDIRECTEDFROM% part should then be added on the fly by the plugin if the page is redirected (having the ?redirectedfrom param set), beauces the targeted page would not know if it's redirected to.
Can this be done using plugins?

-- HansDonner - 24 Sep 2001

As I stated above, I believe this can be done using a simple plugin.

-- JohnTalintyre - 24 Sep 2001

See also some older discussion at PageRedirectTag, where it was rejected (as Core feature). Indeed something for a PlugIn...

-- HansDonner - 28 Sep 2001

If think all coding can be done as a plugin. But, %REDIRECTEDFROM% would need to be put into the view.tmpl template.

-- JohnTalintyre - 30 Sep 2001

We should also have a parameter that counts and stops at too many redirects.

-- MartinCleaver - 30 Sep 2001

See RedirectPlugin for a simple implementation of this idea.

-- SteveMokris - 21 Jun 2003


RedirectPlugin is cool. However, I find it annoying to maintain such redirects.

Why do I want redirects? Well, I am trying to use TWiki to create and maintain a hardware manual - and I might want aliases like PageTableEntries or PtE to both send me to the same page, PageTableEntry.

It's not just aliases. Often I find that I want to define several terms, e.g. AddressAx, AddressAy, AddressAz, but it is easier to define a single page that discusses them all - ComparisonOfAdressesAxAyAz - than it is to define the terms all separately.

Taking a leaf out of EmbedTopicPlugin, something like the following might be nice:

    In page ComparisonOfTopic1and2and3

Idea: when the Compar* topic is saved, it creates the Topic1, etc., redirecting.

Actually, one can actually use EmbedTopicPlugin

    In page ComparisonOfTopic1and2and3
    %BeginTopic{Topic1}% %REDIRECT{ComparisonOfTopic1and2and3}%%End{Topic1}%

although (1) I trust you can see how clunky and repetitive this is, and (2) it looks even worse when rendered.

-- AndyGlew - 31 Mar 2006

-- AndyGlew - 31 Mar 2006

Ooops - I can't seem to set the TopicClassification.

-- AndyGlew - 31 Mar 2006

is AliasPlugin more like what you want?

-- SvenDowideit - 31 Mar 2006

I don't think so, if I understand what AliasPlugin does.

I want to create URLs that get redirected, not aliases that apply only within my TWiki documents.

Why? Well, I have a bad habit of typing URLs in directly. I find that often saves a lot of time compared to conventional navigation, clicking through the network; even compared to searching or looking at TREEVIEW or my recent TopicTree stuff.

I don't thionk that AliasPlugin helps me with this, does it?

Q: does AliasPlugin help when you type something into the "Jump" box I see on my browser?

-- AndyGlew - 31 Mar 2006

RedirectPlugin is cool. However, I find it annoying to maintain such redirects.

One thing that's lacking in TWiki is a mechanism that cause (configurable) automatic behaviours (see TopicDisplayName for another example of this). In some cases -- quite possibly yours -- it can be done via a plugin. Your example

can possibly be implemented already, although there would have to be an
argument to give it permission to splat existing page.

I might give a try and write this plugin once I'm back from breakfast.

-- MeredithLesly - 31 Mar 2006

Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r9 - 2006-03-31 - AndyGlew
  • 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-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.