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
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 /staff. taco.org/ eg/staff/ opac
https:/
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