Javascript Get Url Without Query Parameters In Flaskap