Refs #14592; inverted check for view in base url in order to remove it properly