Closed Bug 589947 Opened 14 years ago Closed 14 years ago

Document renaming and redirecting

Categories

(support.mozilla.org :: Knowledge Base Software, task, P1)

Tracking

(Not tracked)

VERIFIED FIXED

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.
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.
We decided to spin this around and go with Wikipedia-style redirects.
Let's do the renaming UI as a separate bug: bug 600407.
Done in http://github.com/jsocol/kitsune/commit/0d3e8a8f1049a0d46ff274401c5453407d5d556c
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Verified able to rename, and redirect info displays correctly
Status: RESOLVED → VERIFIED
Flags: in-testsuite?
You need to log in before you can comment on or make changes to this bug.