Fix url not updating properly on view merge