All Questions
Tagged with react-admin react-router-dom
11 questions
1
vote
1
answer
39
views
Set default route after login to a CustomRoute?
How would I set a custom route as the default route in react-admin with msalAuthProvider from ra-auth-msal? It seems to default to the first Resource route I have defined, but I want it to redirect to ...
1
vote
2
answers
353
views
react-admin not working if it is in other component and not app.js
I'm trying to integrate React-Admin AdminDashboard component into a larger React application that uses React-Router for navigation. However, I'm encountering issues where AdminDashboard doesn't render ...
0
votes
2
answers
416
views
Issue with useNavigate() Hook in Custom React-Admin Application
I'm facing a challenging issue in my React-Admin application. When I try to use the useNavigate() hook within my custom login component (MyLoginPage), I'm getting the following error:
[Route] is not a ...
0
votes
1
answer
742
views
How to create react-admin custom route?
I tried to create a custom route in my react-admin app, but I get an error when I try to load it.
Here is the code:
// src/pages/MyAdmin.tsx
export const MyAdmin = () => (
<Admin
...
0
votes
1
answer
423
views
React-Admin v4: how to set basename with keyword after /#/
I'm trying the simplest React Admin v4 setup to have a path structure such as /#/{project}/resource..., for instance /#/project_1/user/, /#/project_2/user/ etc...
(I want everything under /#/ so I can ...
0
votes
1
answer
4k
views
nginx + react static build path can't be accessed on direct url hit
I'm trying to deploy a static build of my create-react-app using nginx. I've added homepage: "." as that is required.
And the final output is quite fine, except I can't access some URL ...
0
votes
1
answer
1k
views
Custom Sign-Up page redirects to LoginPage in React-Admin
GOAL:
A user clicks a link tag <Link> from Custom Login Page directing to a Sign-Up Custom Page. In Sign-Up page, after Form submission in OnSubmit, redirects the user to Login Page or any page ...
0
votes
0
answers
84
views
Prevent copied url redirect to /
When we copied an url to our browser like localhost:3000/#/mypage we are redirect to the homepage /.
When I look at the demo of react-admin the copy/paste for /page already work. So I wonder what I ...
2
votes
1
answer
504
views
Getting warning while adding noLayout prop to custom routes list in react-admin
How to remove following warning or any alternative way to add custom routes in react-admin without default appLayout?
Warning: You should not use <Route component> and <Route render> in
...
8
votes
5
answers
6k
views
Adding custom page without authentication in react-admin
I want to add a signup page to my react-admin web portal. Since react-admin do not provide a signup page, I created a custom page and added it to custom routes:
customRoutes.js
import React from '...
0
votes
1
answer
2k
views
I'm using react-admin framework where on login the page doesn't redirect to the lists page
instead it shows this on the console.
Warning: Hash history cannot PUSH the same path; a new entry will not be added to the history stack
The redirect is not working after successful login. Sometimes ...