SWC-1863, SWC-1866

let a "proper" URL parser do this work (server-side)