How to create a route URL? #2616
Unanswered
Barbapapazes
asked this question in
Help and Questions
Replies: 1 comment 3 replies
-
|
For now, I have to do const route = useRoute('/talks/[talkId]/get-started')
const url = computed(() => {
const baseUrl = window.location.origin
return `${baseUrl}/talks/${route.params.talkId}/overview`
})but it's not type safe. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm looking for a way to programmatically create a full URL in order to show a QR code.
For example, I'm on the route
/talks/:talkId/get-startedwhere I want to show a QR code that opens/talks/:talkId/overview. How can I createhttps://example.com/talks/:talkId/overviewwithout having to hard code it?Beta Was this translation helpful? Give feedback.
All reactions