Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.6.x] Fixed #21529 -- Noted that {% url %} encodes its output (refs…

… #13260).

Backport of dfc0926 from master
  • Loading branch information...
commit a4c32d70c2bcf9731b6d6ff3370d2260ab4812af 1 parent f7c2852
@timgraham timgraham authored
Showing with 9 additions and 3 deletions.
  1. +9 −3 docs/ref/templates/builtins.txt
View
12 docs/ref/templates/builtins.txt
@@ -997,9 +997,15 @@ url
^^^
Returns an absolute path reference (a URL without the domain name) matching a
-given view function and optional parameters. This is a way to output links
-without violating the DRY principle by having to hard-code URLs in your
-templates::
+given view function and optional parameters.
+
+.. versionchanged:: 1.6
+
+ Any special characters in the resulting path will be encoded using
+ :func:`~django.utils.encoding.iri_to_uri`.
+
+This is a way to output links without violating the DRY principle by having to
+hard-code URLs in your templates::
{% url 'path.to.some_view' v1 v2 %}
Please sign in to comment.
Something went wrong with that request. Please try again.