React route working properly when used with but not working when redirected from webpack.config.js
React route working properly when used with <Link> but not working when redirected from webpack.config.js In my react project I am using client side routing using React Router DOM v4. Video link to my problem statement: https://drive.google.com/file/d/1nHY-dKxZvDylF5GQUTK02I8Mam1d5eru/view?usp=sharing I have created the route like this <Route path="/pg-response/:status" component={PaytmResponse} exact={true}/> <Route path="/pg-response/:status" component={PaytmResponse} exact={true}/> Here is my AppRouter.js file import React from 'react'; import {BrowserRouter, Route, Switch} from 'react-router-dom'; import {TransitionGroup, CSSTransition} from 'react-transition-group'; import PrivateRoute from './PrivateRoute'; import HomePage from './../components/HomePage'; import AboutUs from './../components/AboutUs'; import ContactUs from './../components/ContactUs'; import PageNotFound from './../c...