I have a string of a url:
var url = "/_imgs/media/image/Picture%201.png"
When I try to split it lke:
var path = url.split('image/');
console.log(path);
gives:
["/_imgs/media/", "Picture%201.png"]
ok fine, but when I do
console.log(path[1]);
I get:
/Picture%png
What is happening here?