Skip to main content
0 votes
0 answers
27 views

Page A (H5) navigates to another project’s Page B (H5) via window.location.href. On Page B, an internal route (push) takes the user to Page C. When tapping the back button on Page C, on higher ...
musheng's user avatar
0 votes
0 answers
128 views

In a webapp we are trying to solve an Open Redirect vulnerability. The code is like this: window.location.href = DOMPurify.sanitize(data.href); Which apparently is vulnerable. One recommended solution ...
Lennart's user avatar
  • 1,048
0 votes
0 answers
47 views

I can successfully pre-populate an email from a button click with the first part of the page URL, and the first parameter in the URL, but it's cutting off after that. I have multiple parameters in the ...
Beth Granter's user avatar
1 vote
2 answers
57 views

I've been working on a coding project and I have been trying to have multiple "pages" in one html file (e.g. awsomesauce.com/page.html#videos and showing only the videos section) while ...
Salad_Spinner's user avatar
-2 votes
1 answer
70 views

According to the locale value, language information comes after the domain name in the URL. For example, when it is tr, it is http://127.0.0.1:3000/tr/home. When it is English, it is http://127.0.0.1:...
Havanur's user avatar
-2 votes
2 answers
177 views

I'm creating an eshop on one eCommerce platform (Shoptet) a I'm trying to hide few elements only on homepage but I still want to see them on subpages. These elements have same classes. My script looks ...
Samuel Kurej's user avatar
1 vote
1 answer
771 views

When using a HashRouter, and within a component using useLocation, there is a discrepancy between the window.location object and the location object from useLocation. As I am writing this I have ...
Matt Strom's user avatar
0 votes
0 answers
46 views

When text is entered into this form, it then loads a webpage with that typed text appended at the end of my domain name, to create the full page url. (Incidentally, it also disables the typed Enter ...
MeepleMe's user avatar
0 votes
1 answer
224 views

I have NextJS app, where I declare Pages to be client side using "use client" at the top of the file. When I try to build said application, I get errors stating Error occurred prerendering ...
Reabon's user avatar
  • 19
0 votes
1 answer
2k views

I have a React component with an onClick listener that looks like this: <button className='h-10 min-h-[2.5rem] m-2 rounded-lg border-2 text-white bg-violet-400 border-white' id='logout-...
Steverino's user avatar
  • 2,276
0 votes
2 answers
2k views

I wanted to show the result of the form into another page. I tried redirecting the result using the window.href.location and localStorage but it's not redirecting it to another page. I used the click()...
pichimnc's user avatar
0 votes
1 answer
50 views

I'm currently using the below to add a user's input to a URL but it opens in the same window. I've tried window.open to get the link to open in a new tab with no luck. I've also tried adding _blank ...
Mike Standing's user avatar
1 vote
0 answers
348 views

What I want my nextjs/react code to do: When User clicks "Submit" button, a new tab is opened, then an axios request is sent that returns a response containing a URL generated by the API. I ...
Natalia Markoborodova's user avatar
0 votes
2 answers
127 views

I am getting lat and lng from sessionStorage and I want to send it to browser with window.location but i get to a infinity loop. var lat = sessionStorage.getItem('lat'); var lng = ...
RMCode's user avatar
  • 37
5 votes
1 answer
461 views

I am trying to figure out why there is a difference between two identical URL constructor calls in Safari and Chrome Here is the example from Safari: And here is an example from Chrome: I'm working ...
Рамиль Мусаев's user avatar

15 30 50 per page
1
2 3 4 5
45