We have useful URL manipulation functions in the [UrlUtilsService](https://github.com/geoadmin/mf-geoadmin3/blob/master/src/components/UrlUtilsService.js).