Fix double slash (#325)

Co-authored-by: ekzyis <ek@stacker.news>
This commit is contained in:
ekzyis 2023-06-21 20:09:04 +02:00 committed by GitHub
parent 431947eeee
commit fa32e22cde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -79,7 +79,7 @@ export function BountyForm ({
if (item) {
await router.push(`/items/${item.id}`)
} else {
const prefix = sub?.name ? `/~${sub.name}/` : ''
const prefix = sub?.name ? `/~${sub.name}` : ''
await router.push(prefix + '/recent')
}
})

View File

@ -68,7 +68,7 @@ export function DiscussionForm ({
if (item) {
await router.push(`/items/${item.id}`)
} else {
const prefix = sub?.name ? `/~${sub.name}/` : ''
const prefix = sub?.name ? `/~${sub.name}` : ''
await router.push(prefix + '/recent')
}
})}

View File

@ -111,7 +111,7 @@ export function LinkForm ({ item, sub, editThreshold, children }) {
if (item) {
await router.push(`/items/${item.id}`)
} else {
const prefix = sub?.name ? `/~${sub.name}/` : ''
const prefix = sub?.name ? `/~${sub.name}` : ''
await router.push(prefix + '/recent')
}
}}

View File

@ -58,7 +58,7 @@ export function PollForm ({ item, sub, editThreshold, children }) {
if (item) {
await router.push(`/items/${item.id}`)
} else {
const prefix = sub?.name ? `/~${sub.name}/` : ''
const prefix = sub?.name ? `/~${sub.name}` : ''
await router.push(prefix + '/recent')
}
}}