Closed Bug 1260920 Opened 10 years ago Closed 10 years ago

Some redirections out of MDN are broken

Categories

(Developer Documentation Graveyard :: General, defect)

All
Other
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: francois, Unassigned)

Details

(Whiteboard: [specification][type:bug])

What did you do? ================ 1. Follow this link: http://developer.mozilla.org/en/docs/Safe_Browsing What happened? ============== Browser is redirected to https://developer.mozilla.org/en-US/docs/http%3A_wiki.mozilla.org/Safe_Browsing What should have happened? ========================== Browser should have been redirected to http://wiki.mozilla.org/Safe_Browsing Is there anything else we should know? ====================================== The same thing happens with http://developer.mozilla.org/en/docs/Safe_Browsing:_Design_Documentation
Product: Mozilla Developer Network → Developer Documentation
Hrm, I've tried to fix these pages: https://developer.mozilla.org/en-US/docs/Safe_Browsing https://developer.mozilla.org/en-US/docs/Safe_Browsing:_Design_Documentation But redirections to non-MDN pages don't seem to work. asking John for advice - John, do redirects to external pages not work? In this case, they would be appropriate, as the up-to-date docs are now on WikiMo.
Flags: needinfo?(jwhitlock)
The code supports redirects, with the format: REDIRECT <a class="redirect" href="https://wiki.mozilla.org/Safe_Browsing">https://wiki.mozilla.org/Safe_Browsing</a> which is indeed how you've written the page. However, the HTML cleanup algorithm changes it to: REDIRECT <a href="https://wiki.mozilla.org/Safe_Browsing" class="redirect" >https://wiki.mozilla.org/Safe_Browsing</a> which is valid HTML but doesn't match the pattern, and thus isn't triggering the redirect. It is hard to say when this bug was introduced, and I can't see anything you can do on the client side to work around it.
Flags: needinfo?(jwhitlock)
We decided some time ago to stop supporting redirects to non-MDN sites, so this is not really considered a bug so much as a place where the content needs to change to present a clickable link to the destination site rather than trying to redirect automatically.
Looks like they've just been fixed: https://developer.mozilla.org/en/docs/Safe_Browsing https://developer.mozilla.org/en/docs/Safe_Browsing:_Design_Documentation and are now clickable links to the right places. Thanks!
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
(In reply to François Marier [:francois] from comment #4) > Looks like they've just been fixed: > > https://developer.mozilla.org/en/docs/Safe_Browsing > https://developer.mozilla.org/en/docs/Safe_Browsing:_Design_Documentation > > and are now clickable links to the right places. > > Thanks! Because MDN redirects to external pages are not supported, this is about the best we can do. I have made the language around the links a bit nicer.
You need to log in before you can comment on or make changes to this bug.