Avoid calls to url_for('index') in each page rendering.