[Change Request] Re: [kerry@xxxxxxx: broken link on home page]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2009-11-11 03:07:42 PM, Ricky Zhou wrote:
> > It would be reasonable to provide some automation for a single 
> > document, but since no two documents seem to use the same 
> > naming/directory structure, such an effort would have to be on a per 
> > document basis.  It might seem to make more sense to restructure the 
> > site so there was some consistency, but given the number of 
> > documents/formats/languages and the slowness of cvs that turns out 
> > to be a huge job.
> Would it be possible to get even a plain white list of languages links 
> to the HTML documents for just 
> http://docs.fedoraproject.org/install-guide/f12/ and 
> http://docs.fedoraproject.org/release-notes/f12/, or could we get a list 
> of URLs that need to be directed to the main docs.fp.o index?
> 
> We can't really change the link on the website at this point, being way 
> past the string freeze, and it's pretty important that those links go to 
> something especially for the F12 release (although fp.o is already 
> currently full of these broken links for F11 docs).
If this is fine with you guys, here's a change request to add redirects 
for those two to the docs.fp.o index page where visitors can choose 
their language and version of the document they want.

--

diff --git a/modules/fedora-docs/files/fedora-docs-proxy.conf b/modules/fedora-docs/files/fedora-docs-
index 259cfbd..61dfc04 100644
--- a/modules/fedora-docs/files/fedora-docs-proxy.conf
+++ b/modules/fedora-docs/files/fedora-docs-proxy.conf
@@ -7,6 +7,15 @@ RewriteRule ^(.*)/fc7$  http://docs.fedoraproject.org/$1/f7/ [R,L]
 RewriteRule ^/release-notes/f10preview(.*) /release-notes/f10$1 [R=301,L]
 RewriteRule ^/release-notes/f11preview(.*) /release-notes/f11$1 [R=301,L]
 
+# Language selection indexes for these documents are gone now, so redirect
+# to the main docs page where users can choose their language.
+
+RewriteRule ^/release-notes/f11/$ / [R=301,L]
+RewriteRule ^/release-notes/f12/$ / [R=301,L]
+
+RewriteRule ^/install-guide/f11/$ / [R=301,L]
+RewriteRule ^/install-guide/f12/$ / [R=301,L]
+
 <Directory /srv/web/docs>
   Options Indexes
 </Directory>

--

Alternatively, we can update all links to point at eg.  
http://docs.fedoraproject.org/install-guide/f12/en-US/html/ and mark 
those as translatable, which would be a late break of the string freeze, 
but still a pretty small one (the effect would be that all website links 
would point to the English doc until translators update them to point to 
their specific language's URL).

Thanks,
Ricky

Attachment: pgpv49udQX5YQ.pgp
Description: PGP signature

_______________________________________________
Fedora-infrastructure-list mailing list
Fedora-infrastructure-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list

[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux