Closed
Bug 569560
Opened 14 years ago
Closed 14 years ago
Add redirect for s.m.c/contribute
Categories
(support.mozilla.org :: General, defect, P1)
support.mozilla.org
General
Tracking
(Not tracked)
VERIFIED
FIXED
1.5.5
People
(Reporter: djst, Assigned: jsocol)
References
()
Details
Attachments
(1 file)
524 bytes,
patch
|
paulc
:
review+
|
Details | Diff | Splinter Review |
We are working on a paper flyer to distribute at the LinuxTag event (Wednesday June 9th) and need a redirect for support.mozilla.com/contribute to point to support.mozilla.com/%locale%/kb/How+to+contribute. Don't quote me on this, but in an attempt to make this easy for webdev, I think what needs to be added near the end of http://svn.mozilla.org/projects/sumo/trunk/webroot/htaccess.dist is: RewriteRule ^([\-a-zA-Z]+)/contribute$ /$1/contribute/ [R] ... RewriteRule ^contribute\/?$ tiki-index.php?page=How+to+contribute [QSA,L] RewriteRule ^([\-a-zA-Z]+)/contribute\/?$ tiki-index.php?page=How+to+contribute&locale=$1 [QSA,L]
Updated•14 years ago
|
Flags: in-testsuite?
Assignee | ||
Comment 1•14 years ago
|
||
Close, but not quite. I'll pick this up today.
Assignee: nobody → james
Assignee | ||
Updated•14 years ago
|
Target Milestone: --- → 1.5.5
Assignee | ||
Comment 2•14 years ago
|
||
Can this redirect? IE: Can the URL change once people navigate to /contribute, or does it need to stay unchanged?
Reporter | ||
Comment 3•14 years ago
|
||
Yes, it can definitely redirect. It should work the same way as the /forum redirect, which expands to https://support.mozilla.com/%detected_locale%/kb/Support+Website+Forums. Thanks!
Assignee | ||
Comment 4•14 years ago
|
||
This leaves the locale-detection to Tiki and just maps /contribute to /kb/How+to+contribute. Simple.
Attachment #449039 -
Flags: review?(paulc)
Comment 5•14 years ago
|
||
Comment on attachment 449039 [details] [diff] [review] really simple WFM.
Attachment #449039 -
Flags: review?(paulc) → review+
Assignee | ||
Comment 6•14 years ago
|
||
r68277. QA/David: This just makes /contribute redirect to /kb/How+to+contribute, and Tiki figures out the language from your browser. Sound right?
Assignee | ||
Updated•14 years ago
|
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 7•14 years ago
|
||
Sounds perfect. Btw, when I looked at htaccess.dist, I saw at least three lines of code per similar redirect (/forum, /chat) -- that's why I proposed that code in comment 0. Just flagging it in case we're missing something, though I bet you know what you're doing. ;)
Reporter | ||
Comment 8•14 years ago
|
||
And indeed, this things works on stage.
Reporter | ||
Comment 9•14 years ago
|
||
(And my grammer is badder than normal)
Verified FIXED; tested |en-US| and |de| in my accept-language prefs.
Status: RESOLVED → VERIFIED
Comment 11•14 years ago
|
||
I also tested it on Fx 3.6.3 Gujrati (gu-IN) browser. https://support-stage-new.mozilla.com/contribute redirects to https://support-stage-new.mozilla.com/gu-IN/kb/How+to+contribute
You need to log in
before you can comment on or make changes to this bug.
Description
•