Resetting the url right before resetting the app