Closed Bug 597243 Opened 15 years ago Closed 14 years ago

Support existing (tiki-formatted) links to SUMO articles

Categories

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

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: cww, Assigned: paulc)

References

Details

A lot of Mozilla web properties and external web sites link to URLs of the format: support.mozilla.com/%LOCALE%/kb/%TITLE% Where TITLE is the article title with spaces replaced by +s. We don't want to break that when we change the URL format in Kitsune to use slugs.
Not sure what the best approach would be here, but one way of doing this might be to look at the top referrers' links and make sure we create redirects for those. That is assuming it's not possible (or too time-consuming) to create redirects for ALL articles...
Since we decided to allow anything in slugs, we could just make the slugs of all the articles the same as the current titles. Otherwise, if there's not a long tail, but just a handful of key articles, maybe we can create redirects by hand that use the current title as a slug.
Yeah, that might be the smartest solution. We could automatically create slugs matching the current URLs and then we could rename articles later on (which, with the new system, would create redirects automatically). It wouldn't make the majority of URLs in the new KB pretty by default, but it would mean a very smooth transition, and we'll have plenty of time to rename (and prettify) articles in the future.
I think it's the best we have right now without adding another layer of fallback and redirection, further complicating the process of looking up an article by name. Paul, this bug can be fixed just by using the current title ~s/ /+/ as the slug during the migration.
Assignee: nobody → paulc
Blocks: 586487
This is a good compromise, as it also saves me some trouble and special cases.
Hardware: x86 → All
Target Milestone: --- → 2.3
Let's do it! :)
Do we have spec/mechanism for making redirects if we update the slug but not the page title?
(In reply to comment #7) > Do we have spec/mechanism for making redirects if we update the slug but not > the page title? We have a couple options we're reviewing from a technical stand point. The results on your end should be very similar.
This is being fixed as part of bug 586487 -- we're making the slugs be exactly equal to titles, except where slugs contain slashes (/) (very few cases).
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Verified migrated articles play nicely with spaces in the titles, links function
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.