Javascript Get Url Without Query Parameters In Spring