portable url gen fix