[Koha-bugs] [Bug 18946] New: Change language from external web fails

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jul 17 15:30:21 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18946

            Bug ID: 18946
           Summary: Change language from external web fails
 Change sponsored?: ---
           Product: Koha
           Version: 17.05
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: OPAC
          Assignee: oleonard at myacpl.org
          Reporter: hagud at orex.es
        QA Contact: testopia at bugs.koha-community.org

We have identified that if you add the url to change language from one external
web to koha, it doesn't work it just send you again to your current web.

How to reproduce:
1. Get a multilingüal Koha like 
http://demo1.orex.es/cgi-bin/koha/opac-changelanguage.pl?language=en
http://demo1.orex.es/cgi-bin/koha/opac-changelanguage.pl?language=es-ES

2. Copy that urls to any web page and try to link to the spanish or english
version,it will keep you in the same position

we suspect is opac-changelanguage.pl becuase it gets the url from the referer
and then construct a wrong url becuase of the referer... If 

#my $url      = $query->referer() || '/';
my $url    = 'https://whatever/';

it works.. because we force the referer to the koha host domain

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list