-
I have a project in refine which is installed in a sub directory (eg: http.site.com/subfolder). However, when accessing the site, the url assembled by refine is (http.site.com/login). How do I make refine accept the subfolder and show the url as follows (http.site.com/subfolder/login)? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @tiago-zis, I assume you already defined your apps Which platform are you using? If it's Next.js or Remix, you may also want to check the Also can you give me a bit more info about the structure of your app and how you achieved serving the app in the sub directory? Is it done through the router options or manually by defining custom routes? 🤔 |
Beta Was this translation helpful? Give feedback.
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 ofredirectTo
property incheck
method of theauthProvider
🤔 Or you may want to define a custom path inAuthenticated
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
orloader
methods for redirects. If not, probably theAuthenticated
component is the one responsible with the redirects, you can passredirectOnFail="subfolder/login"
to enforce the redirect path.Also can you give me a bit more info about the structure of your app …