Skip to content
Myr

Merge pull request #3317 from csirmazbendeguz/patch-1

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

Fix typo in urlprocessors.rst

authored by David Lord · committed by GitHub · parents c42803f, 28ffe15 · Browse files · 1 file+2 added−2 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−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:docs/patterns/urlprocessors.rst+2 added-2 removed
37 unmodified lines
38generate URLs from one function to another you would have to still provide39the language code explicitly which can be annoying.4041For the latter, this is where :func:`~flask.Flask.url_defaults` functions42come in. They can automatically inject values into a call for43:func:`~flask.url_for` automatically. The code below checks if the42come in. They can automatically inject values into a call to43:func:`~flask.url_for`. The code below checks if the44language code is not yet in the dictionary of URL values and if the45endpoint wants a value named ``'lang_code'``::4647 @app.url_defaults
79 unmodified lines