This is thanks to work that @plexus did with urls some time ago :)