Closed
Bug 1054269
Opened 11 years ago
Closed 10 years ago
Revisit how wiki & content zone URLs work
Categories
(developer.mozilla.org Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 943979
People
(Reporter: jezdez, Unassigned)
Details
(Whiteboard: [specification][type:change])
What feature should be changed? Please provide the URL of the feature if possible.
==================================================================================
Original issue: https://github.com/mozilla/kuma/issues/1933
"
One of the features of content zones is the ability to remap a URL outside the /docs/ path of the wiki. So, /en-US/docs/Mozilla/Apps (& everything under it) apparently moves to /en-US/Apps.
There's a problem, though: In the database, all these pages still live under Mozilla/Apps. The move to /en-US/Apps is just a hacky trick at the model / Django middleware level. This has caused subtle and gross problems for various other bits of the wiki.
Somehow, this needs to be resolved such that wiki pages don't just pretend to live outside the /docs/ URLspace - but actually do live there.
During the redesign, I felt rushed and so didn't do this in what I thought was the "right" way. And the "right" way to me seemed to go something like this:
Elevate the wiki views from /docs/ to /
Should this allow wiki pages to override any URL on the site?
Maybe calls for middleware that allows route resolution to fall through to other views if a corresponding wiki page is not found. (Is that a thing?)
Or should it go the other way round?
ie. Wiki pages can live at any URL not claimed by another view in urls.py?
Move all pages that live at / now to under /docs/ in the database, so that there's no apparent change.
Move all pages with zone remaps to the proper URLs
Remove the zone remap feature & hacks altogether.
Any thoughts? (esp. from @jezdez & @ubernostrum as this feels like it calls for some deep Django magic)
The reason this is a big deal is because it's getting confusing as to where pages live for edits & moves, and it seems like a new bug surfaces every week or two with some feature or another of the wiki."
What problems would this solve?
===============================
Code smell
Who would use this?
===================
n/a
What would users see?
=====================
n/a
What would users do? What would happen as a result?
===================================================
n/a
Is there anything else we should know?
======================================
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Updated•5 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•