Closed Bug 501983 Opened 15 years ago Closed 15 years ago

404 pages should not list articles in other locales

Categories

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

task
Not set
minor

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: cilias, Assigned: paulc)

References

()

Details

(Whiteboard: tiki_bug, tiki_upstreamed)

Attachments

(1 file, 1 obsolete file)

Go to http://support-stage.mozilla.org/en-US/kb/Cannot+log+in+to+websitess
The list of recommended articles includes many articles in other locales. It should only list articles that are in the language of the locale in the URL.
Assignee: nobody → paul.craciunoiu
Severity: normal → minor
Attached patch patch, v1 (obsolete) — Splinter Review
This might go up to Tiki too.
Attachment #386549 - Flags: review?(smirkingsisyphus)
Attachment #386549 - Flags: review?(laura)
Attachment #386549 - Flags: review?(laura) → review+
Attachment #386549 - Flags: review?(smirkingsisyphus)
Attached patch patch, v2Splinter Review
Actually, it would be better to check locale is set before passing it.
Attachment #386549 - Attachment is obsolete: true
Attachment #391415 - Flags: review?(laura)
Attachment #391415 - Flags: review?(laura) → review+
r48835 / r48836.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Verified FIXED on http://support-stage.mozilla.org/en-US/kb/Cannot+log+in+to+websitess; viewed source so I could check the locales easier :-)
Status: RESOLVED → VERIFIED
Marc: is this fixed in latest Tiki?
Whiteboard: tiki_bug
Check of $_REQUEST['locale'] in the lib is not really nice. Plus, that variable is specific to the SUMO rewrite rules.

I'm also not convinced this is desired in all cases.
Whiteboard: tiki_bug → tiki_bug, tiki_discuss
Admittedly the fix wasn't a nice one. Sorry about that.

A better solution is to add an option for filtering by locale, and passing that in when issuing the 404 for pages.

The larger scope of this is also discussed in other bugs, but the functionality we want for SUMO is to be able to have pages with the same title in different locales -- as such, case tying <locale,page title> together is desired in all cases.
Whiteboard: tiki_bug, tiki_discuss → tiki_bug, tiki_upstreamed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: