Skip to content

how to configure refine framework to present the url in a sub directory #4192

Answered by aliemir
tiago-zis asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @tiago-zis, I assume you already defined your apps login route as /subfolder/login. The default /login redirect may be happening due to the lack of redirectTo property in check method of the authProvider 🤔 Or you may want to define a custom path in Authenticated component if it is the one responsible with the redirect.

Which platform are you using? If it's Next.js or Remix, you may also want to check the getServerSideProps or loader methods for redirects. If not, probably the Authenticated component is the one responsible with the redirects, you can pass redirectOnFail="subfolder/login" to enforce the redirect path.

Also can you give me a bit more info about the structure of your app …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@tiago-zis
Comment options

@aliemir
Comment options

Answer selected by omeraplak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4189 on April 18, 2023 11:39.