Skip to content
Myr

Added short note about Werkzeug redirect behaviour

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Hampus Dunström · committed by Hampus Dunström · parent 78b56db · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:docs/api.rst+2 added
717 unmodified lines
718719This specifies that ``/users/`` will be the URL for page one and720``/users/page/N`` will be the URL for page `N`.721722Note: Underlying behaviour in Werkzeug redirect URLs containing a default value to its simpler form with a 301 redirect.723724Here are the parameters that :meth:`~flask.Flask.route` and725:meth:`~flask.Flask.add_url_rule` accept. The only difference is that726with the route parameter the view function is defined with the decorator727instead of the `view_func` parameter.
97 unmodified lines