fix: using leading at symbol in user profile path

This commit is contained in:
mutoe 2020-10-07 21:32:32 +08:00
parent f74df8a254
commit a99d3b40c4
3 changed files with 5 additions and 5 deletions

View File

@ -4,7 +4,7 @@
<div class="info">
<RouterLink
:to="`/profile/${article.author?.username}`"
:to="`/@${article.author?.username}`"
class="author"
>
{{ article.author?.username }}

View File

@ -1,12 +1,12 @@
<template>
<nav class="navbar navbar-light">
<div class="container">
<a
<RouterLink
class="navbar-brand"
href="index.html"
to="/"
>
conduit
</a>
</RouterLink>
<!-- FOR TEST, remove after user auth logic will be implemented -->
<button @click="isUserAuthorized=!isUserAuthorized">

View File

@ -20,7 +20,7 @@ export function useNavigationLinks ({ isUserAuthorized }: UseLinksProps) {
{ to: '/register', title: 'Sign up', display: 'anonym' },
{ to: '/editor', title: 'New Post', display: 'authorized', icon: 'ion-compose' },
{ to: '/settings', title: 'Settings', display: 'authorized', icon: 'ion-gear-a' },
{ to: '/profile/USERNAME', title: 'USERNAME', display: 'authorized' },
{ to: '/@USERNAME', title: 'USERNAME', display: 'authorized' },
]
const navLinks = computed(() => allNavLinks.filter(