I have ajax call and from json i get URL like this:
http://pp.somedomain.com/pp/url/245/http%253A%252F%252Fmydomain.com%252Fblog%252F25-03-11%252Fawesome-story-bro%252F%253Fstuff%253D492039402
Now I would like to parse that I would only get my domain.com path from that. So the end result would be:
http://mydomain.com/blog/25-03-11/awesome-story-bro/
But I have no clue how to do that with Javascript/jQuery. Anyone could help me out? I read tutorial and somehow I have to count / and then cut it somehow.