Fixed so url is updated after page type is added. See #66