+ get serverVersion () {
+ return this.serverService.getConfig().serverVersion
+ }
+
+ get instanceName () {
+ return this.serverService.getConfig().instance.name
+ }
+
+ get defaultRoute () {
+ return RedirectService.DEFAULT_ROUTE
+ }
+
+ ngOnInit () {
+ document.getElementById('incompatible-browser').className += ' browser-ok'
+
+ this.router.events.subscribe(e => {
+ if (e instanceof NavigationEnd) {
+ const pathname = window.location.pathname
+ if (!pathname || pathname === '/') {
+ this.redirectService.redirectToHomepage()
+ }
+ }
+ })
+
+ this.authService.loadClientCredentials()
+
+ if (this.isUserLoggedIn()) {