Bug 7843: Followup - fix broken url
authorBernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Tue, 3 Mar 2015 11:53:04 +0000 (08:53 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 30 Apr 2015 19:33:19 +0000 (16:33 -0300)
This patch fixes an invalid URL when clicking
on RSS feed.

To test:
1) Using Nicole words :)
If you visit : http://mykoha/cgi-bin/koha/opac-main.pl
then the RSS feed works.
If you're on http://mykoha and you click the rss icon you
get : http://mykoha/opac-news-rss.pl which is a 404 page.

2) Apply the patch

3) Repeat 1, error is now fixed

Signed-off-by: Pierre <tredok.pierre@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt

index d257257..41eac01 100644 (file)
@@ -48,7 +48,7 @@
                 [% END %]
             </div>
             <div id="rssnews-container">
-                <a href="opac-news-rss.pl"><img src="[% interface %]/[% theme %]/images/feed-icon-16x16.png"></a>
+                <a href="[% OPACBaseURL %]/cgi-bin/koha/opac-news-rss.pl"><img src="[% interface %]/[% theme %]/images/feed-icon-16x16.png"></a>
                 RSS for Library News.
             </div>
         [% END %]