We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea7a172 commit 1e75775Copy full SHA for 1e75775
flask/helpers.py
@@ -159,7 +159,13 @@ def url_for(endpoint, **values):
159
160
Variable arguments that are unknown to the target endpoint are appended
161
to the generated URL as query arguments. If the value of a query argument
162
- is `None`, the whole pair is skipped.
+ is `None`, the whole pair is skipped. In case blueprints are active
163
+ you can shortcut references to the same blueprint by prefixing the
164
+ local endpoint with a dot (``.``).
165
+
166
+ This will reference the index function local to the current blueprint::
167
168
+ url_for('.index')
169
170
For more information, head over to the :ref:`Quickstart <url-building>`.
171
0 commit comments