1

Is there a way to use BrowserRouter with react-admin to have URLs without the # character?

Gildas Garcia
  • 6,966
  • 3
  • 15
  • 29
vascoFG
  • 129
  • 1
  • 11

1 Answers1

2

You'll have to supply your own history. See https://marmelab.com/react-admin/Admin.html#history

import createHistory from 'history/createBrowserHistory';

const history = createHistory();

const App = () => (
    <Admin history={history}>
        ...
    </Admin>
);
Gildas Garcia
  • 6,966
  • 3
  • 15
  • 29