i need to remove the first “/” in my url.
As you can see my first value is correct, now i need to do the same to the second url.
How can i delete the first “/”
option=com_content&view=article&id=2&Itemid=2 < CORRECT
/option=com_content&view=article&id=2&Itemid=2 < NOT GOOD FOR ME
Different way
var rawurl = "/option=com_content&view=article&id=2&Itemid=2";rawurl = rawurl.substr(rawurl.indexOf('/') + 1);