Merge "Use absUrl, so WEBROOT isn't ignored on redirect"
This commit is contained in:
commit
fd64d61258
@ -44,7 +44,7 @@
|
||||
waitSpinnerService
|
||||
) {
|
||||
waitSpinnerService.showModalSpinner(gettext('Loading'));
|
||||
$window.location.href = $location.path();
|
||||
$window.location.href = $location.absUrl();
|
||||
}
|
||||
|
||||
}());
|
||||
|
@ -32,7 +32,8 @@
|
||||
controller = $injector.get('$controller');
|
||||
waitSpinnerService = $injector.get('horizon.framework.widgets.modal-wait-spinner.service');
|
||||
|
||||
spyOn($location, 'path').and.returnValue('path');
|
||||
// NOTE: This is using absUrl, so requests will already include WEBROOT.
|
||||
spyOn($location, 'absUrl').and.returnValue('path');
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user