Category : url

I’m trying to append a text value to the following "http://3-10.cetecerpdevel.com:3101/customer/list_new" from the TextFilter of "?external_key=blabla" in react. So in other words,http://3-10.cetecerpdevel.com:3101/customer/list_new?external_key=blabla. I have looked at doing react-router but it doesn’t seem viable for what I’m doing and I tried URLSearchParams. The code below is the snippets I’m working with. How would you do this? ..

Read more

I am appending values from my inputs in the url and I would like that values are remembered when sharing a link or refreshing the page. Currently I am using localStorage, which does not help to solve this issue. URL append input value: useEffect(() => { const params = new URLSearchParams(); params.append(‘contribution’, count); params.append(’employees’, employees); ..

Read more

i get a url, from the url i get the name, the name is like this myFileName%20.jpg(from url) it really is myFileName .jpg in another way i have some files myFileName%201.jpg it really their name is same myFileName%201.jpg then how can i differenciate betweeen both cases? const str = “image%20.png” console.log(str.replace(/%20/g, ” “)); console.log(decodeURI(str)) Source: ..

Read more