Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
1 vote
0 answers
213 views

I'm using history.pushState to change the URL programmatically without any user interaction (like a button click). This works fine in Chrome and some other browsers, but in Firefox, when I press the ...
Dimuthu Pinsara's user avatar
-1 votes
1 answer
45 views

Shallow routing works well when clicking on an item Shallow routing throws 404 when typing item url directly Link to Stackblitz that shows the issue src/routes/(news)/+layout.svelte <script lang=&...
PirateApp's user avatar
  • 6,372
1 vote
0 answers
40 views

Here is 1.html <!DOCTYPE html> <html> 1 <script> let time = 0; setInterval(() => { if (time === 500) location.href = '/2.html'; time++; }, 1); </...
DennisYun's user avatar
0 votes
2 answers
250 views

I have a sveltekit app. in one page -cart.svelte- I press a button to go to page where I choose if the order for pickup or delivery -ordertype.svelte- but I lost the cart content because it is a ...
Marco's user avatar
  • 1,215
0 votes
0 answers
139 views

Aka define the set of all possible values that can be passed through structured clone algorithm (mdn, html spec, structuredClone). It'd be super useful to constrain types that has to be passed through ...
Link0's user avatar
  • 669
1 vote
1 answer
118 views

I found that popstate fires when the user presses back or forward button. But that does it mean it is the default behaviour of the browser. Suppose a website doesn't use SPA, clicking on a link loads ...
quest's user avatar
  • 21
0 votes
0 answers
136 views

I have a TMS WEB Core application with code all over the place that changes the URL via the window.history.pushState function. Is there a way I can detect when the URL has changed? Let's say for ...
Shaun Roselt's user avatar
  • 4,381
0 votes
2 answers
398 views

I have a lib which is added in a SPA project which uses router.push(which will eventually call window.history.pushState) to make the url changes. However I need my lib to be able to listen to these ...
Rafael Costa's user avatar
  • 1,541
0 votes
1 answer
528 views

I'm trying to manipulate my query params directly without any library (like react-router- because i don't need them now). The problem is when i try to add query params using this codes: let url = new ...
Amin.Qarabaqi's user avatar
0 votes
1 answer
141 views

Even after I logged out I'm still able to see my previous pages how to prevent the browser from showing this? I tried this piece of JavaScript code . Note: I used template inheriting and templates ...
user avatar
0 votes
1 answer
89 views

Update: This was an oversight on my behalf - Tabs.onUpdated.addListener does indeed fire on all mentioned events, I just had a hidden guard clause that was blocking it from firing on pushstate/...
PlankTon's user avatar
  • 12.6k
0 votes
3 answers
342 views

I am trying to change url with pushstate in java script and my url doesn't have any space or bad character for url but java script encode it and add some character in it. my code is: name= name....
saleh's user avatar
  • 45
0 votes
1 answer
55 views

I have a single page website and I am using an ACTIVE class on the nav to highlight the links in the NAV. The javascript to make nav links active: $(document).ready(function () { $('.inner-nav li ...
user54097's user avatar
0 votes
1 answer
142 views

I have a blank Angular.js 6 application that uses PathLocationStrategy for routing, and when on a subroute (e.g. /test) and executing the following: history.pushState({}, '', '#abc'); window....
WKFY's user avatar
  • 84
2 votes
1 answer
767 views

I've found that in these versions of Safari and Chrome, pushing a new state value into the browsers history with no user input will behave unexpectedly. It will correctly update the state. You will be ...
Rinato's user avatar
  • 63

15 30 50 per page
1
2 3 4 5
43