browser-history Questions
18
Solved
So now that HTML5 introduces history.pushState to change the browsers history, websites start using this in combination with Ajax instead of changing the fragment identifier of the URL.
Sadly that ...
Whirligig asked 31/12, 2010 at 12:31
1
I'm using NextJS (v.13.4.15) app directory
I'm using a react-native webview to display a website inside of a mobile app, so a back button is critical for navigation (I cannot access the browser's b...
Zolazoldi asked 18/8, 2023 at 16:40
4
Solved
I use History package to redirect invalid URL to 404 page on my react component.
I use .replace instead of .push simply because I don't want the browser to record any invalid url I have visited.
...
Hennery asked 6/9, 2016 at 3:14
2
I am using a react-router-v6 and I wanna know is there anyway to log or get previous URL ?
I want to use a condition based on my browsing history and check if my previous URL page was x do somethin...
Stylist asked 18/12, 2022 at 11:24
6
Solved
When an error is thrown in our React 16 codebase, it is caught by our top-level error boundary. The ErrorBoundary component happily renders an error page when this happens.
Where the ErrorBoundary...
Radiotransparent asked 5/1, 2018 at 21:49
11
Solved
I'm changing an IFRAME's src in order to reload it, its working fine and firing the onload event when its HTML loads.
But it adds an entry to the history, which I don't want. Is there any way to r...
Swum asked 4/5, 2009 at 18:45
7
Solved
just i want to make back button in my site. once i click the button it need to take the url in to previous page. how can i make this using jquery?
Trouper asked 3/6, 2010 at 17:41
2
I have to maintain a site with an AJAX search form (for lets say books) and I want the search results to be a part of the browser history.
So I set the "popstate" event handler
window.addEventLis...
Urn asked 21/2, 2018 at 18:12
13
Solved
I have an AJAX app. A user clicks a button, and the page's display changes. They click the back button, expecting to go to the original state, but instead, they go to the previous page in their bro...
Haploid asked 4/12, 2009 at 2:24
2
Specifically, calling the following snippet of code:
history.replaceState(undefined, undefined, "#" + value)
will correctly not affect the back button behavior of the current page, but will add ...
Quentin asked 7/11, 2014 at 2:37
2
Solved
I'm wrapping react app in Router with passing createBrowserHistory prop. But getting "property 'history' does not exist on type 'IntrinsicAttributes & RouterPops"
Here is my index.tsx...
Feudist asked 12/11, 2021 at 19:27
2
In Safari when replaceState will be called more than 100 times, it will throw:
SecurityError: DOM Exception 18: An attempt was made to break through
the security policy of the user agent.
Mor...
Choppy asked 17/7, 2016 at 9:38
5
I'm trying to figure out how to make my React SPA app maintain state when the user navigates with the back/forward browser buttons. E.g. the user is filling a form, then he moves back and forward a...
Demantoid asked 26/11, 2017 at 11:36
9
Solved
This code works fine in FF, it takes the user back to the previous page, but not in Chrome:
<a href="www.mypage.com" onclick="javascript:history.go(-1)">Link</a>
Wh...
Shill asked 27/4, 2013 at 14:8
3
If I use history.back() for button press then what will happen?
Will the HTML content be displayed from the local history of the browser or the cache and without the browser requesting to the serv...
Empanel asked 23/4, 2010 at 2:47
2
In my react app I have a popup in one of the page. Now when the popup is open and the user presses browser's back button then user is taken to the previous page, instead I want to simply close the ...
Peta asked 1/9, 2020 at 12:36
3
The code below works well. Here is my problem: The window url redirects, but the original url is not logged in my browser history.
For example, if I visit "http://example.com/page1", the browser r...
Salmagundi asked 23/7, 2012 at 21:1
3
Solved
Using the HTML5 window.history API, I can control the navigation pretty well on my web app.
The app currently has two states: selectDate (1) and enterDetails (2).
When the app loads, I replaceState...
Bartram asked 19/1, 2015 at 15:41
1
I don't seem to find an answer to this anywhere, including the Notion official API docs, so here is my question:
How do you request a page history thorough the Notion API. The stuff that is availab...
Dingess asked 11/9, 2021 at 11:20
7
Solved
I have the requirement that the end user should not be able to go back to the restricted page after logout/sign out. But currently the end user is able to do that by the browser back button, visiti...
Mycosis asked 16/11, 2010 at 12:40
2
I came to the kind of anyoing problem. So, I have a component in react and also using react-router. Everything works almost great. This component has a list of items, when you click on one, it push...
Photoreceptor asked 24/7, 2017 at 9:44
3
Solved
I am using AJAX to load main content of the page. Using history.pushstate(Object:State, String:Title, String:URL) - I am able to update the URL in the address bar and navigate back in the history.
...
Bullring asked 11/12, 2012 at 9:59
2
I've got a page with some select-fields.
Once the user changes the value of a select-field, a new history-object is created using the values of all select-fields as a state object:
$(".chosen-...
Royston asked 19/5, 2014 at 13:44
3
I'm trying to be clever and considerate towards users, but once again, I've run into a "design" issue.
I have a number of pages on a website where I've chosen to remove the default navigation and ...
Pyroelectricity asked 16/9, 2015 at 12:8
8
Solved
On a button click, I am getting the URL changed by doing history.push()
import createHistory from 'history/createBrowserHistory'
const history = createHistory()
.
. some code
.
history.push(...
Vostok asked 12/3, 2019 at 20:47
1 Next >
© 2022 - 2024 — McMap. All rights reserved.