Answer the question
In order to leave comments, you need to log in
How to solve the problem of special characters in the address bar?
All the best!
Please help me get by with a little bloodshed:
I use this wonderful plugin https://github.com/Mikhus/jsurl
Allows you to manipulate the URl.
Everything works until the page is reloaded:
I fill in the array (dynamically), but here I’ll show it simply with static
url.query.materials = [1,2,3];
history.pushState(null, null, url);
/gg?materials[]=1&materials[]=2&materials[]=3
/gg?materials%5B%5D[]=1&materials%5B%5D[]=2&materials%5B%5D[]=3&materials[]=4
Answer the question
In order to leave comments, you need to log in
Unfortunately, you only need to work with address strings through encodeURI and encodeURIComponent
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question