fixed: now generating url correctly