Replies: 1 comment
-
try
|
Beta Was this translation helpful? Give feedback.
0 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 trying to setup a protected vitepress instance and for this I utilize OAuth2 Proxy to have login functionality.
Login works well and vitepress content is protected.
Now I would like to implement a signout functionality but for this to work I would need to navigate to the /oauth2/sign_out endpoint of the proxy.
When I just try to add another nav item that points to "/oauth2/sign_out" the router tries to navigate to "/oauth2/sign_out.html" which of course doesn't exist.
I know that there would be the option to define the full url including the origin so that it is interpreted as an external link but for this I would need to determine the origin at runtime i.e. do something like
window.location.origin + "/oauth2/sign_out"
which doesn't work in the vitepress config.tsIs there some easy way to achieve what I'm trying to do or are there other options I need to consider to do this?
Beta Was this translation helpful? Give feedback.
All reactions