Fixed copy & paste so that it works with path and url separation mod.