fix startpage links

This commit is contained in:
Christoph Haas 2023-06-20 23:19:55 +02:00
parent 73f0313fa7
commit 4c7f2b24bc
5 changed files with 34 additions and 33 deletions

View File

@ -1,5 +1,6 @@
<script setup>
import {authStore} from "../stores/auth";
import {RouterLink} from "vue-router";
const auth = authStore()
</script>
@ -18,7 +19,7 @@
<hr class="my-4">
<p>{{ $t('home.profiles.instruct') }}</p>
<p class="lead">
<a href="/user/profile" class="btn btn-primary btn-lg" title="User-Profile">{{ $t('home.profiles.btn') }}</a>
<RouterLink :to="{ name: 'profile' }" class="btn btn-primary btn-lg">{{ $t('home.profiles.btn') }}</RouterLink>
</p>
</div>
@ -28,8 +29,8 @@
<hr class="my-4">
<p>{{ $t('home.admin.instruct') }}</p>
<p class="lead">
<a href="/admin/" class="btn btn-primary btn-lg me-2" title="WireGuard Administration">{{ $t('home.admin.btn-1') }}</a>
<a href="/admin/users/" class="btn btn-primary btn-lg" title="User Administration">{{ $t('home.admin.btn-2') }}</a>
<RouterLink :to="{ name: 'interfaces' }" class="btn btn-primary btn-lg me-2">{{ $t('home.admin.btn-1') }}</RouterLink>
<RouterLink :to="{ name: 'users' }" class="btn btn-primary btn-lg">{{ $t('home.admin.btn-2') }}</RouterLink>
</p>
</div>

View File

@ -11,7 +11,7 @@
let WGPORTAL_BACKEND_BASE_URL="http://localhost:5000/api/v0";
</script>
<script src="/api/v0/config/frontend.js"></script>
<script type="module" crossorigin src="/app/assets/index-d419fd98.js"></script>
<script type="module" crossorigin src="/app/assets/index-2321088d.js"></script>
<link rel="stylesheet" href="/app/assets/index-a233ff7e.css">
</head>
<body class="d-flex flex-column min-vh-100">