]> git.evergreen-ils.org Git - Evergreen.git/commit
Prevent odd TPAC base URL redirect
authorDan Wells <dbw2@calvin.edu>
Fri, 9 Nov 2012 21:12:58 +0000 (16:12 -0500)
committerBill Erickson <berick@esilibrary.com>
Thu, 13 Feb 2014 22:10:57 +0000 (17:10 -0500)
commit192a1f7b9c26e1ca038680200d51a7dc666d8a14
tree3a839624be6c7e3c9016655d7f84dcacdcbca6f5
parent2614ebd16674124e064e512af419ba4e53795704
Prevent odd TPAC base URL redirect

As it stands, in a default install, if you browse to

http://yourserver.com/eg/opac

you are redirected to a login page, and if you login, you then get
to the 404 page. This behavior is caused by the fact that *any*
URLs which do not match a few select cases are assumed to be
"secure" resources, when in fact they might not even exist.

This commit catches any attempt to browse this 'base' and simply
redirects to the "home" page instead.

This addresses the most obvious and likely 404 of this type, but
we might consider catching some other cases (e.g. eg/opac/record/).
In addition (or as an alternative), we could also create a function
call which simply checks the validity of a URL before we ask the
user to login to see it.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm