Closed
Bug 589947
Opened 15 years ago
Closed 15 years ago
Document renaming and redirecting
Categories
(support.mozilla.org :: Knowledge Base Software, task, P1)
support.mozilla.org
Knowledge Base Software
Tracking
(Not tracked)
VERIFIED
FIXED
2.3
People
(Reporter: erik, Assigned: erik)
Details
As discussed in the "Questions regarding the Knowledge Base" email thread, we'll need page renames and redirects working such:
* Put the titles in the URLs
* Support the renaming of pages without breaking any links
* Have friendly wiki link syntax [[Alice the Article]]
URLs would look something like http://support.mozilla.com/kb/Ted-the-Title. Going to http://support.mozilla.com/kb/Ted-the-Previous-Title would redirect to the original article.
On retitling an article:
Retitle original Document.
Create Redirect(old_title, new_title)
On view document:
if Document.get(title=title).exists():
return Document view
if Redirect.get(old_title=title).exists():
return redirect
return 404
On edit document (This part is P>1.):
If there's a redirect with the same name as the title, warn that it'll be deleted if you save.
This should give us a simpler parser, fewer DB-crawling update tasks, support for renames, fewer special cases on document treatment (e.g., all pages should be treated the same in the l10n dashboard), and general UI happiness.
Assignee | ||
Comment 1•15 years ago
|
||
Have a "Previous Titles" (or something) field in some hidden away spot of the Edit view. Just a textarea with a line per title should suffice. Putting the UI on the Document will make it unsurprising that deleting the document also deletes any redirects to it.
Assignee | ||
Comment 2•15 years ago
|
||
We decided to spin this around and go with Wikipedia-style redirects.
Assignee | ||
Comment 3•15 years ago
|
||
Let's do the renaming UI as a separate bug: bug 600407.
Assignee | ||
Comment 4•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Comment 5•15 years ago
|
||
Verified able to rename, and redirect info displays correctly
Status: RESOLVED → VERIFIED
Updated•14 years ago
|
Flags: in-testsuite?
You need to log in
before you can comment on or make changes to this bug.
Description
•