I\'ve been Googling for a while and can\'t seem to find an answer to this question. My problem is as follows:
For my jquery, I need my links to be relative rather th
Here's a modified version of JKS's answer that uses split instead of substring. A little more elegant IMO:
stripBaseUrl : function(url){ var urlArray = url.split("/"); return urlArray[urlArray.length - 1]; }