fix URL ignoring path