Redirect: To

By ErichSteinboeckErichSteinboeck

Description

Post Redirect info from Feb 2009 asks: “Wikimedia pages that are redirected to, show text "(Redirected from <pagename)", with a link so tht you can see the redirected page. Can the same be done here?”

In action

Here is an answer involving:

  • the landing page code:redirect-to (edit it) which shows a “This page has been redirected from …” message only if having been redirected from one of the two redirection pages below
  • a redirection page code:redirect-from (edit it): redirects to “redirect-to” showing an appropriate message there
  • another redirection page code:redirect-from-2nd (edit it): also redirects to “redirect-to” showing an appropriate message there
This is the Redirect module that redirects the browser directly to the "http://snippets.wikidot.com/code:redirect-to/noredirect/true/tag/_(none)/" page.

Code

How the Landing Page is Coded

[[module ListPages category="code" limit="1" tag="@URL"]]
[[size smaller]]
This page has been redirected from [[[%%page_unix_name%%|%%page_unix_name%%]]]
[[/size]]
[[/module]]

[[div style="display : none"]]
[[module Redirect destination="http://snippets.wikidot.com/code:redirect-to/noredirect/true/tag/_(none)/"]]
[[/div]]

How a Redirection Page is Coded

Any redirection page must be uniquely tagged with the tag specified in below [[module Redirect ...]] call — in this case “_code:redirect-from”

[[module Redirect destination="http://snippets.wikidot.com/code:redirect-to/tag/_code:redirect-from/"]]
[[/module]]

[[div style="display : none"]]
[[module Redirect destination="http://snippets.wikidot.com/code:redirect-to/noredirect/true/tag/_(none)/"]]
[[/div]]

Rate this solution

If you think this solution is useful — rate it up! Or dump it otherwise.

rating: +2+x
First time it is confusing - but after thinking and following your guide- Fine!
Helmuti_pdorfHelmuti_pdorf 1235987854|%e %b %Y, %H:%M %Z|agohover

Thanks Erich for such solution!

First time it is confusing - but after thinking and following your guide- Fine!

I think sometimes - all is possible on wikidot.com .. we need only people like you who think deeper into the procedural tasks happening on the server.


Service is my success. My webtips:www.blender.org, www.zusi.de (Demo-Video)

Wollen Sie Wikidot helfen im deutschen » Handbuch ?

How to undo a redirect?
Luis2HenriqueLuis2Henrique 1242067461|%e %b %Y, %H:%M %Z|agohover

So, if I make a wrong redirect, how can I undo that? Is it possible?

unfold How to undo a redirect? by Luis2HenriqueLuis2Henrique, 1242067461|%e %b %Y, %H:%M %Z|agohover
Re: How to undo a redirect?
Helmuti_pdorfHelmuti_pdorf 1242115808|%e %b %Y, %H:%M %Z|agohover

http://community.wikidot.com/help:emergency-help#toc3 !!


Service is my success. My webtips:www.blender.org, www.zusi.de (Demo-Video)

Wollen Sie Wikidot helfen im deutschen » Handbuch ?

unfold Re: How to undo a redirect? by Helmuti_pdorfHelmuti_pdorf, 1242115808|%e %b %Y, %H:%M %Z|agohover
Re: How to undo a redirect?
Luis2HenriqueLuis2Henrique 1242151496|%e %b %Y, %H:%M %Z|agohover

Thank you very much, that was really helpful!

unfold Re: How to undo a redirect? by Luis2HenriqueLuis2Henrique, 1242151496|%e %b %Y, %H:%M %Z|agohover
Add a new comment
page_revision: 6, last_edited: 1236554089|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License