Clean up curent url, fixes #44.