Comment 1 for bug 1862694

Revision history for this message
Josh Stompro (u-launchpad-stompro-org) wrote :

I found one other instance that could cause problems, if anyone has a hostname starting with staff.

https://git.evergreen-ils.org/?p=Evergreen.git;a=blob;f=Open-ILS/web/js/ui/default/staff/cat/item/app.js;hb=HEAD#l1145

var url = $location.absUrl().replace(/\/staff.*/, '/actor/user/event_log');

That would match
https://staff.taco.org/eg/staff/opac

I think it both cases the regex just needs to include the trailing forward slash so it cannot match the beginning of the hostname.

Unless "$scope.batchedit_url = $location.absUrl().replace(/\/eg.*/, '/opac/extras/merge_template');" is supposed to match /eg2/ or /eg/ ?

Josh