diff --git a/demo-shell/src/app.config.json b/demo-shell/src/app.config.json index f378e43847..d1beefeda1 100644 --- a/demo-shell/src/app.config.json +++ b/demo-shell/src/app.config.json @@ -21,7 +21,7 @@ "silentLogin": true, "redirectSilentIframeUri": "{protocol}//{hostname}{:port}/assets/silent-refresh.html", "redirectUri": "/", - "redirectUriLogout": "/logout", + "redirectUriLogout": "#/logout", "publicUrls": [ "**/preview/s/*", "**/settings", diff --git a/demo-shell/src/app/app.module.ts b/demo-shell/src/app/app.module.ts index e86432ebee..d6f92cb91d 100644 --- a/demo-shell/src/app/app.module.ts +++ b/demo-shell/src/app/app.module.ts @@ -23,7 +23,14 @@ import { ChartsModule } from 'ng2-charts'; import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http'; import { BrowserAnimationsModule, NoopAnimationsModule } from '@angular/platform-browser/animations'; import { TranslateModule } from '@ngx-translate/core'; -import { AppConfigService, TRANSLATION_PROVIDER, DebugAppConfigService, CoreModule, CoreAutomationService, AuthBearerInterceptor } from '@alfresco/adf-core'; +import { + AppConfigService, + TRANSLATION_PROVIDER, + DebugAppConfigService, + CoreModule, + CoreAutomationService, + AuthBearerInterceptor +} from '@alfresco/adf-core'; import { ExtensionsModule } from '@alfresco/adf-extensions'; import { AppComponent } from './app.component'; import { MaterialModule } from './material.module'; @@ -127,7 +134,7 @@ registerLocaleData(localeSv); BrowserModule, environment.e2e ? NoopAnimationsModule : BrowserAnimationsModule, ReactiveFormsModule, - RouterModule.forRoot(appRoutes, { initialNavigation: true }), + RouterModule.forRoot(appRoutes, { useHash: true }), FormsModule, HttpClientModule, MaterialModule, diff --git a/demo-shell/src/app/components/login/login.component.ts b/demo-shell/src/app/components/login/login.component.ts index b9068dbe8a..1e67052a8f 100644 --- a/demo-shell/src/app/components/login/login.component.ts +++ b/demo-shell/src/app/components/login/login.component.ts @@ -26,7 +26,7 @@ import { LogService } from '@alfresco/adf-core'; }) export class LoginComponent { - customSuccessRouteURI = ''; + customSuccessRouteURI = '/home'; customLogoImageURL = './assets/images/alfresco-logo.svg'; disableCsrf = false; diff --git a/demo-shell/src/app/components/logout/logout.component.html b/demo-shell/src/app/components/logout/logout.component.html index 6fd8a5ee6c..bdcaefd5c8 100644 --- a/demo-shell/src/app/components/logout/logout.component.html +++ b/demo-shell/src/app/components/logout/logout.component.html @@ -7,7 +7,7 @@