fix bz961216 and others related to url based apps