changed to function the process of generating a URL

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>