// Force reload of the app after a successful login.
// This allows the route resolver to re-run with a
// valid auth token and workstation.
-
- // Temporarily redirect to AngularJS splash page
- // (LP#1848550/LP#1835128)
- window.location.href = '/eg/staff/splash';
- // this.ngLocation.prepareExternalUrl(url);
+ window.location.href =
+ this.ngLocation.prepareExternalUrl(url);
});
}
<div class="navbar-nav">
<div class="nav-item">
<a i18n class="nav-link with-material-icon"
- href="/eg/staff/"
+ routerLink="/staff/"
egAccessKey keyCtx="navbar" i18n-keySpec i18n-keyDesc
keySpec="alt+h" keyDesc="Navigate Home">
<span class="material-icons">home</span>
<div class="navbar-collapse collapse" ng-class="!navCollapsed && 'in'">
<ul class="nav navbar-nav">
- <li><a href='./' title="[% l('Home') %]" target="_self"
+ <li><a href='/eg2/staff/' title="[% l('Home') %]" target="_self"
class="glyphicon glyphicon-home"></a><li>
<!-- search -->
*/
.controller('SplashCtrl', ['$scope', '$window','egCore',
function($scope, $window,egCore) {
-
- $scope.focus_search = true;
-
- egCore.strings.setPageTitle(
- egCore.strings['PAGE_TITLE_SPLASH']);
-
- $scope.catalog_search = function($event) {
- $scope.focus_search = true;
- if (!$scope.cat_query) return;
- if ($event && $event.keyCode != 13) return; // input ng-keypress
- $window.location.href =
- '/eg2/staff/catalog/search?query=' +
- encodeURIComponent($scope.cat_query);
- }
+
+ $window.location.href = '/eg2/staff/';
}])
.controller('AboutCtrl', [
// NOTE: egEnv also defines basePath, but we cannot import
// egEnv here becuase it creates a circular reference.
- $window.location.href = '/eg/staff' + ws_path;
+ $window.location.href = '/eg2/staff' + ws_path;
deferred.resolve();
});
}