How can i get current url NOT inside +page files? #2188
Answered
by
brillout
rizabek-mukanov
asked this question in
Discussion
|
hello everyone. decided to try vike for my next project i saw this : https://vike.dev/route-function and it suggests to pass url params via +route file. How can i get current url/route in components? e.g. sidebar. I dont like idea of passing it to component from page. im using filesystem routing if it matters thanks in advance! |
Answered by
brillout
Feb 15, 2025
Replies: 1 comment 1 reply
1 reply
Answer selected by
rizabek-mukanov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
2ceea5c