Refine massaged URL to be compatible with appDirs hosted at the base URL.