shorten the url by dropping the fragments