Skip to content

Commit

Permalink
make home button work in dev and production #3002
Browse files Browse the repository at this point in the history
  • Loading branch information
sven-dmlr committed Dec 11, 2024
1 parent d312074 commit a0f5a82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sechub-website/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import { Menu, MenuButton, MenuItems, MenuItem } from '@headlessui/vue';
import { Bars3Icon, ChevronDownIcon } from '@heroicons/vue/20/solid';

const baseURL = process.env.NODE_ENV === 'development' ? '' : '/sechub';

const documentationItems = [
{
title: 'Getting Started',
Expand Down Expand Up @@ -55,7 +57,7 @@ const items = [
<nav>
<div class="relative z-50 mx-auto flex max-w-7xl justify-between px-4 py-4 sm:px-6 lg:px-8">
<div class="relative z-10 flex items-center gap-16">
<NuxtLink aria-label="Home" to="/">
<NuxtLink aria-label="Home" :to="`${baseURL}/`">
<img src="/logo.svg" class="h-12 w-10 object-contain" alt="SecHub Logo" />
</NuxtLink>

Expand Down

0 comments on commit a0f5a82

Please sign in to comment.