Add fix for missing basepath in navbar login button (#86)

This commit is contained in:
Daniel Barenholz 2023-07-11 18:52:32 +02:00 committed by GitHub
parent 394357c298
commit ad1141f378
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,7 @@ nav.navbar.is-fixed-top(role='navigation', aria-label='main navigation',style='b
if req.isAuthenticated()
if req.user._id === '_CCUNKNOWN'
.navbar-item
a.button.is-primary(href='/login')= lang('NAVBAR_LOGIN')
a.button.is-primary(href=`${_CC.config.base}login`)= lang('NAVBAR_LOGIN')
else
.navbar-item.has-dropdown.is-hoverable
a.navbar-link= req.user._id