web.git redirect for ro-RO

Pete Travis me at petetravis.com
Wed Dec 18 16:35:23 UTC 2013


Hello,

I'd like to bring everyone's attention to a bug[1] that I've discovered
a workaround for.  Here's what happens:

We install ro-RO translations to web.git. They go into
web.git/public_html/ro_RO/

When any book is installed, web.git/public_html/index.html is rewritten.
This page contains a snatch of JavaScript to redirect a user to their
localized content.

In the case of ro-RO, this JavaScript actually redirects to
web.git/public_html/ro/index.html - which breaks the site for ro-RO readers.

The fix[2] is simple. Edit web.git/public_html/index.html and changs
"ro" to "ro-RO" . This needs to be done after *every* run of installs,
so please check it before you push.


[1] https://bugzilla.redhat.com/show_bug.cgi?id=998327
[2]
https://git.fedorahosted.org/cgit/docs/web.git/commit/?id=2f2791b0ec7d42befb48db9bec25b1e98f255b9a

-- 
-- Pete Travis
 - Fedora Docs Project Leader
 - 'randomuser' on freenode
 - immanetize at fedoraproject.org


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 555 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/docs/attachments/20131218/2d62b721/attachment.sig>


More information about the docs mailing list