fix: Ändra ordning på sidornas title så att sidans innehåll kommer först (TV-644)
Squashed commit of the following: commit 63c27a8c7d9878a4af98b36f939a001ff32dd4ad Author: Daniel Appelgren <daniel.appelgren@arbetsformedlingen.se> Date: Wed Sep 22 11:15:00 2021 +0200 Update layout.component.ts
This commit is contained in:
@@ -49,7 +49,7 @@ export class LayoutComponent extends UnsubscribeDirective {
|
|||||||
const pageTitle = this.activatedRoute?.snapshot?.data?.title as string;
|
const pageTitle = this.activatedRoute?.snapshot?.data?.title as string;
|
||||||
const urlTree = this.router.parseUrl(this.router.url);
|
const urlTree = this.router.parseUrl(this.router.url);
|
||||||
|
|
||||||
this.titleService.setTitle(`Mina sidor för fristående aktörer${pageTitle ? ` - ${pageTitle}` : ''}`);
|
this.titleService.setTitle(`${pageTitle ? `${pageTitle} - ` : ''}Mina sidor för fristående aktörer`);
|
||||||
|
|
||||||
if (urlTree.queryParams.code) {
|
if (urlTree.queryParams.code) {
|
||||||
void this.router.navigate([], {
|
void this.router.navigate([], {
|
||||||
|
|||||||
Reference in New Issue
Block a user