Skip to content

Commit b8eb14c

Browse files
committed
additional fixes to slug-functions
1 parent 9e66482 commit b8eb14c

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

angular.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"src/license-selector-creation.js",
6969
"node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"
7070
],
71-
"baseHref": "/"
71+
"baseHref": "/repository/"
7272
},
7373
"configurations": {
7474
"development": {

config/config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ rest:
66
port: 8080
77
nameSpace: /server
88

9+
ui:
10+
ssl: false
11+
host: localhost
12+
port: 4000
13+
nameSpace: /repository
14+
915
# Caching settings
1016
cache:
1117
# NOTE: how long should objects be cached for by default

src/app/header/header.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ export class HeaderComponent implements OnInit {
6565
}
6666

6767
const translations = {
68-
'partners': 'partneri',
69-
'integration': 'integrace',
70-
'partnership': 'partnerstvi',
68+
'partners': this.getLangCodeIfCzech() + '/' + 'partneri',
69+
'integration': this.getLangCodeIfCzech() + '/' + 'integrace',
70+
'partnership': this.getLangCodeIfCzech() + '/' + 'partnerstvi',
7171
'services': 'sluzby'
7272
};
7373

74-
return this.getLangCodeIfCzech + '/' + translations[slug] || '';
74+
return translations[slug] || '';
7575
}
7676
}

src/themes/dspace/app/header/header.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<a href="{{ '/' + getLangCode() + '/' + translateSlug('services') }}" class="lindat-nav-link ">{{'navbar.services' | translate}}</a>
3636
</li>
3737
<li class="lindat-nav-item lindat-dropdown">
38-
<a href="{{ getLangCodeIfCzech() }}" class="lindat-nav-link lindat-dropdown-toggle"
38+
<a href="{{ '/' + getLangCodeIfCzech() }}" class="lindat-nav-link lindat-dropdown-toggle"
3939
data-toggle="dropdown"
4040
onclick="this.parentNode.querySelector('.lindat-dropdown-toggle+div.lindat-dropdown-menu').classList.toggle('lindat-show'); return false;">{{'navbar.about' | translate}}</a>
4141
<div class="lindat-dropdown-menu">

0 commit comments

Comments
 (0)