REDIRECT to page section  Topic is solved

Moderator: Unholy

REDIRECT to page section

Postby AlanOfTheBerg » Wed Sep 11, 2013 3:53 am

Do redirects to page sections not work as expected? I can't get "bowtie" to redirect to anything but the page top. The URL doesn't reflect what I'd expect either, but I guess some recent wikimedia update changed the way redirects work...

Any suggestions?
Wiki Resources: Map Editing Manual | alanoftheberg@gmail.com
Oregon-based US Country Manager | iPhone6 - VZ - iOS 9.3.1 | Waze v4.4.9904
AlanOfTheBerg
Waze Global Champs
Waze Global Champs
 
Posts: 23439
Joined: Sat Aug 28, 2010 8:48 pm
Location: US Country Manager - Oregon, USA
Has thanked: 1080 times
Been thanked: 4552 times

Re: REDIRECT to page section

Postby kentsmith9 » Thu Sep 12, 2013 1:54 am

REDIRECTS work two ways:

1. When typed in the search bar they should go directly to the section noted in the redirect, but I too have noticed they seem to have stopped working in the last few months. I spoke to Jackson on that and was going to write it up for him to send to the Wiki back end guys.

2. When linked from inside another page, they seem to work fine, but I think it may be looking at the actual location, not the redirect.

Does this match your experience?

EDIT: both of the above situations are currently acting the same as #1.
Last edited by kentsmith9 on Thu Sep 12, 2013 1:57 am, edited 1 time in total.
Reason: Changed my experience
kentsmith9
Waze Global Champs
Waze Global Champs
 
Posts: 4974
Joined: Mon Apr 23, 2012 3:33 pm
Location: SF/SJ Bay Area of Northern California
Has thanked: 1236 times
Been thanked: 1471 times

Re: REDIRECT to page section

Postby kentsmith9 » Thu Sep 12, 2013 2:27 am

I am going to post some notes from my search on this problem and have the Waze back-end team review here.

I found this https://www.mediawiki.org/wiki/Special: ... Wiki/18220 talking about adding a fix for allowing a redirect to a section of a page.

In Wikipedia they can currently redirect to a section on a page, so I know it is possible. Somehow we are missing that feature, patch, fix, etc. I thought it was working maybe 6 months ago, so it is possible with the last update to add the Parser Extensions we might have lost something we need for REDIRECTs.
kentsmith9
Waze Global Champs
Waze Global Champs
 
Posts: 4974
Joined: Mon Apr 23, 2012 3:33 pm
Location: SF/SJ Bay Area of Northern California
Has thanked: 1236 times
Been thanked: 1471 times

Re: REDIRECT to page section

Postby kentsmith9 » Thu Sep 12, 2013 2:31 am

Another note in the Wikimedia page on Section linking states:

(One might have to force reload CSS style sheets.)
kentsmith9
Waze Global Champs
Waze Global Champs
 
Posts: 4974
Joined: Mon Apr 23, 2012 3:33 pm
Location: SF/SJ Bay Area of Northern California
Has thanked: 1236 times
Been thanked: 1471 times

Re: REDIRECT to page section

Postby kentsmith9 » Thu Sep 12, 2013 2:37 am

I keep finding old messages from 2005-2006 that says you cannot redirect to an anchor (we aren't even trying to do that). However today if you go to Wikipedia and search for "Intel SSD" you will be taken to a section on that page that is only reached by the anchor template just before that section displayed. Therefore sometime after 2006 this bug has been fixed at least for Wikipedia.
kentsmith9
Waze Global Champs
Waze Global Champs
 
Posts: 4974
Joined: Mon Apr 23, 2012 3:33 pm
Location: SF/SJ Bay Area of Northern California
Has thanked: 1236 times
Been thanked: 1471 times

Re: REDIRECT to page section

Postby sirKitKat » Thu Oct 17, 2013 10:03 pm

I want to do a redirection for Permalink and I came tot the same problem.
But I think I have a really nice workaround for the problem but it involves some small edits on all existing pages that are linking to the Permalink page and Template:Permalink.

Current situation:
* linking to the Permalink section is done by: [[Permalink]]
* including the explanation of Permalink on a page (template): {{Permalink}}
* Permalink page: redirect to the Permalink section
* Template page: explanation of Permalink

Suggestion A:
* linking to the Permalink section: {{Permalink}}
* including the explanation of Permalink on a page: {{:Permalink}}
* Permalink page: explanation of Permalink
* Template page: Simple link to Permalink section:
Code: Select all
[[Waze_Map_Editor#Permalink|Permalink]]

Suggestion B: The opposite of A:
* linking to the Permalink section: {{:Permalink}}
* including the explanation of Permalink on a page: {{Permalink}}

The question is what do you want to show the user if he reaches the permalink page?
* Redirect (current behaviour)
* Only the explaination of Permalink
* A link where the full explaination of Permalink can be found
* Customized text. (with the use of <noinlcude> and <includeonly> almost everything is possible)

What doesn't work is combining #REDIRECT with <noinclude> or <includeonly>
Image
(This image represents the update cycle of the INTL map tiles CET. The NA version of this can be found here CT)
sirKitKat
Wiki Master
Wiki Master
 
Posts: 654
Joined: Thu Nov 24, 2011 4:50 pm
Location: BE-Deinze / Waze wiki: Benelux
Has thanked: 327 times
Been thanked: 132 times

Re: REDIRECT to page section

Postby sirKitKat » Thu Oct 17, 2013 10:13 pm

Just found out: the link will work as expected if you write the link like this:
Code: Select all
[[Permalink#Permalink|Permalink]]
Image
(This image represents the update cycle of the INTL map tiles CET. The NA version of this can be found here CT)
sirKitKat
Wiki Master
Wiki Master
 
Posts: 654
Joined: Thu Nov 24, 2011 4:50 pm
Location: BE-Deinze / Waze wiki: Benelux
Has thanked: 327 times
Been thanked: 132 times

Re: REDIRECT to page section

Postby kentsmith9 » Fri Oct 18, 2013 4:13 am

I'm not sure what you are trying to solve. Today any link in the Wiki can go directly to a subsection on a page with no problem. The issue is when you want to search for the redirect, it fails.

If you want to send someone to the Permalink specific subsection from the Wiki, you enter:

[[Waze Map Editor#Permalink|Permalink]]

How is entering:

[[Permalink#Permalink|Permalink]]

a better solution?
kentsmith9
Waze Global Champs
Waze Global Champs
 
Posts: 4974
Joined: Mon Apr 23, 2012 3:33 pm
Location: SF/SJ Bay Area of Northern California
Has thanked: 1236 times
Been thanked: 1471 times

Re: REDIRECT to page section

Postby sirKitKat » Fri Oct 18, 2013 8:50 am

kentsmith9 wrote:I'm not sure what you are trying to solve. Today any link in the Wiki can go directly to a subsection on a page with no problem. The issue is when you want to search for the redirect, it fails.

If you want to send someone to the Permalink specific subsection from the Wiki, you enter:

[[Waze Map Editor#Permalink|Permalink]]

How is entering:

[[Permalink#Permalink|Permalink]]

a better solution?

There are a lot of pages that link to permalink like this:

[[Permalink]]

This generates a valid page link (= not red link) but the redirect to the section does not work.
I believe this is caused by the same problem: page redirect to a section on an other pages does not work properly.
Image
(This image represents the update cycle of the INTL map tiles CET. The NA version of this can be found here CT)
sirKitKat
Wiki Master
Wiki Master
 
Posts: 654
Joined: Thu Nov 24, 2011 4:50 pm
Location: BE-Deinze / Waze wiki: Benelux
Has thanked: 327 times
Been thanked: 132 times

Re: REDIRECT to page section

Postby kentsmith9 » Fri Oct 18, 2013 2:19 pm

Ok. I forgot we had pages that try to link to the redirect. Although that is a legitimate link, our current bug breaks it. I agree we can fix the problem, but why not just go direct to the page section with:

[[Waze Map Editor#Permalink|Permalink]]

This works fine, is the documented Wiki instruction for a link, and does not depend on some other strange bug workaround that might break in the next update. :lol:

Or are you somehow saying your triple Permalink link allows something more?

Note: I did go through the Wiki just now and replace all single permalink wikilinks to the one I listed above. They all tested fine from Wiki pages.
kentsmith9
Waze Global Champs
Waze Global Champs
 
Posts: 4974
Joined: Mon Apr 23, 2012 3:33 pm
Location: SF/SJ Bay Area of Northern California
Has thanked: 1236 times
Been thanked: 1471 times

Next

Return to Wiki Updates and Discussion

Who is online

Users browsing this forum: No registered users