There was a url conversion problem. I deployed a project on my Windows, and all the routes work as standards, launched a project on Linux to transfer it, and the routes do not work if you go to the address bar, and the links work. What could be the problem? Project made on React + API Laravel
<Link to=""> //работает нормально That's how I do routes
import { Switch, Route, BrowserRouter as Router} from 'react-router-dom'; <Router> <Switch> <Route path="/public" exact render={() => <App />} /> <Route path="/public/rooms" render={() => <RoomMain />} /> </Switch> </Router> And so I run the application:
ReactDOM.render(<Router />, document.getElementById('root')); In Laravel, the main path is written as follows:
Route::get( '/{path?}', function(){ return view( 'welcome' );} )->where('path', '.*');