Document renaming and redirecting

VERIFIED FIXED in 2.3

Status

P1
normal
VERIFIED FIXED
8 years ago
8 years ago

People

(Reporter: erik, Assigned: erik)

Tracking

unspecified
Bug Flags:
in-testsuite ?

Firefox Tracking Flags

(Not tracked)

Details

(Assignee)

Description

8 years ago
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

8 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

8 years ago
We decided to spin this around and go with Wikipedia-style redirects.
(Assignee)

Comment 3

8 years ago
Let's do the renaming UI as a separate bug: bug 600407.
(Assignee)

Comment 4

8 years ago
Done in http://github.com/jsocol/kitsune/commit/0d3e8a8f1049a0d46ff274401c5453407d5d556c
Status: NEW → RESOLVED
Last Resolved: 8 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.