fix external url saving if loaded from internal page