prevent 'none' from getting into the url too