Closed
Bug 385508
Opened 18 years ago
Closed 18 years ago
Some languages aren't kept on redirects
Categories
(www.mozilla.org :: General, defect)
www.mozilla.org
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: clouserw, Assigned: clouserw)
Details
Attachments
(1 file, 1 obsolete file)
1.92 KB,
patch
|
reed
:
review+
|
Details | Diff | Splinter Review |
Some of the redirects in the .htaccess don't keep the language, which means people might not get the language they want. This attachment just sticks the requested locale onto the redirect.
Attachment #269423 -
Flags: review?(reed)
Updated•18 years ago
|
Assignee: nobody → clouserw
Comment 1•18 years ago
|
||
Comment on attachment 269423 [details] [diff] [review]
add locale to redirects
>-RewriteRule ^(\w{2,3}(-\w{2}(-mac)?)/)?firefox/privacy[/]?$ legal/privacy/ [PT]
>+RewriteRule ^(\w{2,3}(-\w{2}(-mac)?)/)?firefox/privacy[/]?$ $1/legal/privacy/ [PT]
$1 should already include the '/', so you shouldn't add another one. Also, you should probably use the same regex match as what is used below [ (\w{2,3}(?:-\w{2}(?:-mac)?)?/)? ].
>-RewriteRule ^(?:\w{2,3}(?:-\w{2}(?:-mac)?)?/)?products/firefox(/.*)?$ firefox$1 [PT]
>-RewriteRule ^(?:\w{2,3}(?:-\w{2}(?:-mac)?)?/)?products/thunderbird(/.*)?$ thunderbird$1 [PT]
>+RewriteRule ^(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?products/firefox(/.*)?$ $1firefox$2 [PT]
>+RewriteRule ^(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?products/thunderbird(/.*)?$ $1thunderbird$2 [PT]
This is ok.
> RewriteRule ^(?:\w{2,3}(?:-\w{2}(?:-mac)?)?/)?firefox/2.0rc[1-3]/releasenotes[/]?$ firefox/2.0/releasenotes/ [PT]
> RewriteRule ^(?:\w{2,3}(?:-\w{2}(?:-mac)?)?/)?thunderbird/2.0.0.0rc[1-4]/releasenotes[/]?$ thunderbird/2.0.0.0/releasenotes/ [PT]
Why aren't you changing these?
>-RewriteRule ^firefox/livebookmarks[/]?$ firefox/livebookmarks.html [PT]
>+RewriteRule ^(?:\w{2,3}(?:-\w{2}(?:-mac)?)?/)?firefox/livebookmarks[/]?$ firefox/livebookmarks.html [PT]
I'm pretty sure this is 1.5.0.x only, but whatever.
> RewriteRule ^(?:\w{2,3}(?:-\w{2}(?:-mac)?)?/)?thunderbird/([2-9](?:\.\d){1,3})pre(/.*)$ thunderbird/$1$2 [PT]
Why aren't you changing this one?
Attachment #269423 -
Flags: review?(reed) → review-
Assignee | ||
Comment 2•18 years ago
|
||
I'm not sure - added them to this patch.
Attachment #269423 -
Attachment is obsolete: true
Attachment #269722 -
Flags: review?(reed)
Updated•18 years ago
|
Attachment #269722 -
Flags: review?(reed) → review+
Assignee | ||
Comment 3•18 years ago
|
||
thanks, r4647
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Component: www.mozilla.org/firefox → www.mozilla.org
Updated•13 years ago
|
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in
before you can comment on or make changes to this bug.
Description
•