Skip to content

Commit

Permalink
Fix home link in soproc
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Jan 24, 2024
1 parent 6092da2 commit 231b5e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<header>
<a class="skip-to-content" [routerLink]="['.']" [fragment]='"main"' [queryParamsHandling]='"preserve"'>דלג לתוכן עיקרי</a>
<div class="logo">
<a [routerLink]='["/"]' aria-label='homepage' [style.background-image]='"url(assets/common/img/" + globalSettings.theme.siteLogo + ")"'>
<a [routerLink]='logoRouterLink' [queryParamsHandling]='"preserve"' aria-label='homepage' [style.background-image]='"url(assets/common/img/" + globalSettings.theme.siteLogo + ")"'>
</a>
</div>
<div *ngIf="showSearchBar" class="search-div layout-desktop">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@ export class BkHeaderComponent {
public showShareMenu = signal(false);
collapseMenuSub: Subscription | null = null;
shareMenuSub: Subscription | null = null;
logoRouterLink = ['/'];

constructor (public globalSettings: GlobalSettingsService, private router: Router, private platform: PlatformService, private window: WindowService, public seo: SeoService) {
this.showAuth = !globalSettings.theme.disableAuth && this.platform.browser();
if (this.globalSettings.themeId === 'soproc') {
this.logoRouterLink = ['/i/units/gov_social_service_unit/main'];
}
}

doSearch(href?: string) {
Expand Down

0 comments on commit 231b5e0

Please sign in to comment.