Remove stupid crap at the end of the url