Fix URL bug in friendly function