Use url_for in template instead of hard links