Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

can't redirect to dashboard after authenticating


I replaced the metronioc url with my own api url but i am navigating to dashboard.Can anyone help me
i have two fields for login ....username and password


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


i do it as you described but it restrict me to go to dashboard



Hi Zahid Hussain,

Sorry for the late reply.

Our current functionality allows only authenticated users to access dashboard page, if you want to make dashboard page available for all users you can move the dashboard page route from src/app/routing/PrivateRoutes.tsx to src/app/routing/AppRoutes.tsx.

Regards,
Lauris Stepanovs,
Keenthemes Support Team



Hi Zahid Hussain,

Thank you for reaching out to us.

We are handling redirects to auth page for unauthenticated users in files src/app/routing/AppRoutes.tsx using statement {currentUser ? (...) : (...)}.

Please make sure that you have set authentication for auth users. You can refer to file src/app/modules/auth/components/Login.tsx.

Regards,
Lauris Stepanovs,
Keenthemes Support Team


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(