Closed Bug 952713 Opened 11 years ago Closed 11 years ago

Make redirects from the old SDK docs

Categories

(Cloud Services :: Operations: Marketplace, task)

x86
macOS
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wbamberg, Assigned: oremj)

References

Details

Attachments

(4 files, 1 obsolete file)

Assignee: nobody → server-ops-amo
Component: Documentation → Server Operations: AMO Operations
Product: Add-on SDK → mozilla.org
QA Contact: oremj
Version: unspecified → other
Is it possible to have redirects on a per-page basis? For example, could we make https://addons.mozilla.org/en-US/developers/docs/sdk/latest/dev-guide/tutorials/index.html redirect to https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials, and https://addons.mozilla.org/en-US/developers/docs/sdk/latest/modules/sdk/indexed-db.html redirect to https://developer.mozilla.org/en-US/Add-ons/SDK/High-Level_APIs/indexed-db, and so on? It would be great if we could do this. If we can, I can create a list of all the mappings that are needed.
We should be able to create redirects on a per-page basis. Please provide us the list of mappings and we will add it to the nginx configuration.
Flags: needinfo?(wbamberg)
Attached file mappings (obsolete) —
Flags: needinfo?(wbamberg)
Sorry, please disregard that attachment!
Attachment #8356327 - Attachment is obsolete: true
Flags: needinfo?(wbamberg)
Attached file mappings23
Flags: needinfo?(wbamberg)
Attached file mappings24
Attached file mappings25
Attached file mappings26
I've added four attachments, one for each of the four versions of the SDK docs that are currently on AMO: mappings23 -> https://addons.mozilla.org/en-US/developers/docs/sdk/Firefox-23/ mappings24 -> https://addons.mozilla.org/en-US/developers/docs/sdk/Firefox-24/ mappings25 -> https://addons.mozilla.org/en-US/developers/docs/sdk/Firefox-25/ mappings26 -> https://addons.mozilla.org/en-US/developers/docs/sdk/Firefox-26/ They're slightly different because of new docs being added and existing ones being (re)moved. Each file lists mappings, one per line, in the format: [old path],[new URL] [old path] is given relative to the root for that docs install. There are a few cases where the target no longer exists: in those cases I just redirected to the root of the SDK docs on MDN. Probably the only one of these that anyone might care about is the old "Credits" page, which will exist somewhere else, but doesn't yet. Please let me know if anything looks wildly wrong about any of this, or if you would like this info in a different format. I'm needinfoing Jeff just in case he wants a chance to complain about any of this before it happens.
Flags: needinfo?(jgriffiths)
No interest in complaining over here - looks great!
clearing the needinfo
Flags: needinfo?(jgriffiths)
Assignee: server-ops-amo → oremj
I see mappings for 23-26, do we also need a separate mapping for "latest"?
Flags: needinfo?(wbamberg)
"latest" is just a symlink for "Firefox-24", so I don't know if you need separate mappings for it, but if you do, the mappings for Firefox 24 should be fine.
Flags: needinfo?(wbamberg)
Redirects are in place on addons-dev.allizom.org, e.g., https://addons-dev.allizom.org/en-US/developers/docs/sdk/latest/modules/sdk/indexed-db.html redirects properly. Does everything look okay? When would you like me to push the changes to production?
Flags: needinfo?(wbamberg)
Yes, it looks great. You can push the changes to production as soon as it's convenient for you.
Flags: needinfo?(wbamberg)
Pushed to production.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
That's great! I think after a respectful period (3 months?) we should be able to remove the docs from addons.mozilla.org.
To implement the redirects the docs have already been removed. Do you need me to put them back?
Right now if I google for add on sdk then the first result is a 404: https://addons.mozilla.org/en-US/developers/docs/sdk/latest It'd be cool it that redirected to the new docs
Jeremy: no, I don't need them put back. Sorry for my misunderstanding. Ben: yes, it totally should, thanks for catching that. Jeremy, is that a redirect you can add? https://addons.mozilla.org/en-US/developers/docs/sdk/latest -> https://developer.mozilla.org/en-US/Add-ons/SDK
Flags: needinfo?(oremj)
cool. must not have taken effect yet though. i guess it takes a little while?
It appears to be working now.
Weird. I just tried from multiple computers and am still getting 404 for https://addons.mozilla.org/en-US/developers/docs/sdk/latest/
It looks like the trailing slash matters: https://addons.mozilla.org/en-US/developers/docs/sdk/latest redirects, but https://addons.mozilla.org/en-US/developers/docs/sdk/latest/ does not. So I guess that mapping needs to be added as well. In fact, for every mapping I had that maps from "[path]/index.html" I guess we need 2 additional mappings, one from "[path]/" and one from "[path]". That would be: https://addons.mozilla.org/en-US/developers/docs/sdk/[Firefox-23|Firefox-24|Firefox-25|Firefox-26|latest],https://developer.mozilla.org/en-US/Add-ons/SDK/ https://addons.mozilla.org/en-US/developers/docs/sdk/[Firefox-23|Firefox-24|Firefox-25|Firefox-26|latest]/,https://developer.mozilla.org/en-US/Add-ons/SDK/ https://addons.mozilla.org/en-US/developers/docs/sdk/[Firefox-23|Firefox-24|Firefox-25|Firefox-26|latest]/dev-guide/,https://developer.mozilla.org/en-US/Add-ons/SDK/ https://addons.mozilla.org/en-US/developers/docs/sdk/[Firefox-23|Firefox-24|Firefox-25|Firefox-26|latest]/dev-guide,https://developer.mozilla.org/en-US/Add-ons/SDK/ https://addons.mozilla.org/en-US/developers/docs/sdk/[Firefox-23|Firefox-24|Firefox-25|Firefox-26|latest]/dev-guide/guides/,https://developer.mozilla.org/en-US/Add-ons/SDK/Guides https://addons.mozilla.org/en-US/developers/docs/sdk/[Firefox-23|Firefox-24|Firefox-25|Firefox-26|latest]/dev-guide/guides,https://developer.mozilla.org/en-US/Add-ons/SDK/Guides https://addons.mozilla.org/en-US/developers/docs/sdk/[Firefox-23|Firefox-24|Firefox-25|Firefox-26|latest]/dev-guide/guides/content-scripts/,https://developer.mozilla.org/en-US/Add-ons/SDK/Guides/Content_Scripts https://addons.mozilla.org/en-US/developers/docs/sdk/[Firefox-23|Firefox-24|Firefox-25|Firefox-26|latest]/dev-guide/guides/content-scripts,https://developer.mozilla.org/en-US/Add-ons/SDK/Guides/Content_Scripts https://addons.mozilla.org/en-US/developers/docs/sdk/[Firefox-23|Firefox-24|Firefox-25|Firefox-26|latest]/dev-guide/tutorials/,https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials https://addons.mozilla.org/en-US/developers/docs/sdk/[Firefox-23|Firefox-24|Firefox-25|Firefox-26|latest]/dev-guide/tutorials,https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials https://addons.mozilla.org/en-US/developers/docs/sdk/[Firefox-23|Firefox-24|Firefox-25|Firefox-26|latest]/dev-guide/tutorials/annotator/,https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/Annotator https://addons.mozilla.org/en-US/developers/docs/sdk/[Firefox-23|Firefox-24|Firefox-25|Firefox-26|latest]/dev-guide/tutorials/annotator,https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/Annotator
Component: Server Operations: AMO Operations → Operations: Marketplace
Product: mozilla.org → Mozilla Services
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: