Generate URL for some views not working