Correct login href value based on logged-in state.
This commit is contained in:
parent
2b0eb8d18b
commit
a8b5062bd3
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@
|
|||
<?= ucfirst(config('language')) ?>
|
||||
</span>
|
||||
|
||||
<a class="backend-link badge bg-primary text-decoration-none" href="<?= site_url('calendar'); ?>">
|
||||
<a class="backend-link badge bg-primary text-decoration-none" href="<?= session('user_id') ? site_url('calendar') : site_url('login'); ?>">
|
||||
<i class="fas fa-sign-in-alt me-2"></i>
|
||||
<?= session('user_id') ? lang('backend_section') : lang('login') ?>
|
||||
</a>
|
||||
|
|
Loading…
Reference in a new issue