Fixes issue #105: route var appears twice in the created URL