html5-history Questions
1
As far as I can tell, it is in part determined by the HTML spec's History API1, specifically the value of history.scrollRestoration. Quoting the HTML spec's scroll restoration mode paragraph:
&qu...
Leekgreen asked 13/4 at 2:1
6
There seems to be no API way to detect if you can go back from the current page in an app. One can check the history length, but that includes the forward and backward stack.
I want to display the...
Nablus asked 23/5, 2016 at 7:57
3
I am currently facing a little problem with HTTP post forms and history pushstate.
When my user submits a POST form in example.com/page-1 and then clicks on a link within this page, they are redir...
Spectre asked 30/11, 2012 at 16:58
2
Solved
I'm trying to detect a page change on YouTube by using history.pushState, but it never seems to trigger. I ultimately want to get this working from a Tampermonkey/Greasemonkey script, and for that ...
Murage asked 12/5, 2015 at 18:54
9
Solved
I use Webpack dev server and browserHistory in React Router to manipulate with urls by HTML5 History API. historyapifallback-option does not work in my webpack config file. After refreshing http://...
Vibration asked 17/5, 2016 at 8:37
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
6
Solved
I know this has been asked many times before but answers were not descriptive enough to solve my problem. I don't want to change the whole URL of page. I want to append a parameter &item=brand ...
Handsome asked 28/9, 2015 at 16:57
2
Solved
I need to work with History API for an application.
My problem is that some "home" jQuery plugins already implement an event for popstate
it is possible to have more than one popstate event for a...
Christine asked 4/1, 2017 at 11:49
2
I'm working on an application that blocks a user from accessing any page besides home and signup unless they are signed in. I have a catch all route guard that checks if the user is signed in when ...
Goth asked 10/1, 2020 at 17:56
5
I am working with the History API and using push and pop state. I want to stop the popstate event from firing in some scenario where I am only appending the hash to URL. for example in some cases o...
Dray asked 3/9, 2014 at 0:30
4
The second parameter of History.pushState and History.replaceState can be used to set the "title" of the history entry.
This means that when the user clicks through page 1 to page 8, this is what ...
Save asked 12/10, 2014 at 12:13
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 am trying to understand the difference between BrowserRouter and Router of the react-router-dom (v5) package and what difference it makes for my example below.
The documentation says:
Browser...
Protein asked 21/6, 2019 at 17:14
5
I'm trying to write router component for my react app. I'm create new react class and define some routes in componentDidMount method.
This is full method
componentDidMount: function () {
var me ...
Hyonhyoscine asked 18/4, 2015 at 14:13
1
I am grabbing popstate and need to do various thing based on the current and originalEvent in the history stack. However, I can't figure out how to get the current state for comparison, but origina...
Eyelid asked 24/6, 2015 at 15:59
4
Solved
I have array of states and index of the array in history.state and on popstate I read the content of the array, it work fine but when I go back to first page and refresh the array is gone (which is...
Honig asked 9/4, 2014 at 20:42
4
Solved
Update :- As Akansh Gulati Pointed out in his answer if user have any interaction with the page before clicking back button this will work as expected and if user do not have any interaction with t...
Ahmednagar asked 27/9, 2019 at 6:26
1
I have an application where you arrive at a photo album listing via various means (searching, drill down by category, etc). From the album, you click open individual photos and iterate through them...
Trainee asked 29/5, 2018 at 1:36
2
Solved
According to the accepted answer to this question, React Router 4 doesn't match query parameters anymore. If I go from a URL matched by one of my <Route>s to the same URL with a different que...
Cartan asked 9/4, 2018 at 0:25
1
Solved
In my application, To Hide some information in URL i am using below code.
history.replaceState ({}, "", "bar.html");
It is working in all the browsers except firefox latest version (v56+)
In Fi...
Smoodge asked 2/5, 2018 at 10:27
1
I have a URL /books, which lists some books, and a URL pattern /books/{some-book-title} which shows a view/update form for the metadata of a book. Here's a typical user story, where a user corrects...
Terr asked 13/3, 2019 at 22:3
14
Solved
How would I have a JavaScript action that may have some effects on the current page but would also change the URL in the browser so if the user hits reload or bookmark, then the new URL is used?
...
Humidify asked 25/9, 2008 at 22:0
4
Solved
I've just opened a blank HTML page with some little amount of base tags (like html, body, head, etc) in Google Chrome, and tried to execute the following command in console:
history.pushState(null...
Hulton asked 19/12, 2012 at 15:22
1
I'm using the history API to push a new URL to the web page without reloading it. I have multiple buttons that all have different functionality.
My script now works almost without problems. When I...
Govern asked 19/5, 2014 at 7:28
3
Solved
I have a page where there are several search / filter button which, when clicked, refresh the contents of a list below through AJAX.
In the process, I'm modifying history (through pushstate) so th...
Clothier asked 19/4, 2013 at 13:1
1 Next >
© 2022 - 2024 — McMap. All rights reserved.