{"action":"opened","issue":{"number":40,"created_at":"2011-10-20T14:57:33Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"I have a video site and an issue where the history URL adds to the end of a non fragment URL.\r\n\r\nIf the user hits the page domain.com/video-slug and then clicks to view another video the following URL is created:\r\n\r\ndomain.com/video-slug#/new-video\r\n\r\nIs there anyway to strip anything after the domain trailing slash before inserting the hash URL?\r\n\r\nThe only thing I could think of was to detect the lack of fragment URL and refresh the page with the fragment URL in place, e.g:\r\n\r\ndomain.com/#/video-slug\r\n\r\nWas hoping there might be a cleaner way though.","comments":0,"title":"How to replace non fragment path/URL","updated_at":"2011-10-20T14:57:33Z","url":"https://api.github.com/repos/tkyk/jquery-history-plugin/issues/40","id":2005597,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/6397ffea71d8578cdf1208e7ad22f337?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6397ffea71d8578cdf1208e7ad22f337","url":"https://api.github.com/users/alexcroox","id":1065835,"login":"alexcroox"},"html_url":"https://github.com/tkyk/jquery-history-plugin/issues/40","labels":[],"state":"open"},"legacy":{"number":40,"action":"opened","issue":2005597}}