All Questions
11 questions
1
vote
1
answer
411
views
history.push inside IFRAME is reloading the IFRAME page continuously using ReactJS
I'm trying to use history.push() using react router v5. My website is embedded into another main site as an iframe. When history.push() is used I'm observing a strange behaviour that my website which ...
3
votes
0
answers
321
views
When clicking browser back button it duplicates history while using iframe in react route
I'm facing a weird bug while using an iframe in one route in my company react app.
I have route for "/home" and "/maintenance", "/maintenance" uses iframe. When I am in &...
0
votes
1
answer
551
views
React Router and browser back button
I have a Router Switch that includes these Routes:
<Route exact path={['/', '/gg/']}><Spinner /></Route>
<Route path={['/error', '/gg/error']} render={() => <Error />} /&...
0
votes
1
answer
595
views
Browser Router (React app ) on Github not working [duplicate]
i have a little React app project and i have deployed it in Github. It works, even i am using import { BrowserRouter, Link, Switch, Route } from "react-router-dom"; to routing and works ... ...
3
votes
2
answers
7k
views
In React Router, how do i remove / change the param in history.push that i have sent before?
I am using react-router-dom version 4.3.1, and I am passing param to another route, all things are working fine but now I have to change / remove that param, how do I do that ?
I have tried this
...
1
vote
1
answer
147
views
Manage custom history
Imagine we have 2 type of flows in the app:
PageA → WizardStep1 → WizardStep2 → WizardStep3 → PageB
PageC → PageD → WizardStep1 → WizardStep2 → PageD
In the 1st flow we redirect user to different page....
0
votes
0
answers
32
views
Routing in React
So this is my router config
<Router>
<Switch>
<Route exact path="/" component={App} />
<Route exact path="/HITW" component={HITW} />
</Switch>
&...
0
votes
1
answer
369
views
Use react history object to change last browser's URL
Im currently trying to use the history.push() object from:
https://github.com/ReactTraining/history
Im having problem to change last's URL of browser when the browser's back button is clicked.
When ...
8
votes
1
answer
16k
views
window.onpopstate - do I need to remove this event handler?
I'm using window.onpopstate event handler to listen for back and forward browser button events. My code looks something like this:
componentDidMount() {
window.onpopstate = this....
0
votes
2
answers
2k
views
Cannot GET /currentSite on refresh react
I have a problem. I cant refresh my react components/page without getting "Cannot GET /currentPage". I've browsed you for some time now and found a couple of links that could be the solution of my ...
1
vote
1
answer
218
views
Extend the React Router of exist application on fly
Is there any way to extend react-router of one application which is already hosted on fly? I want to inject additional routes on the click of a link which allows me to inject the script or allows to ...