I would verify that the view actually assigns to the template variable what you 
are expecting it to be assigned to.

From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On 
Behalf Of Christian Seberino
Sent: Thursday, August 2, 2018 3:36 PM
To: Django users
Subject: trouble adding variables to URLs in templates... seems some characters 
get cut out like "?"

Suppose you have a URL built from a variable in a template like so...<a href = 
"{{some_variable}}">test</a>.

I noticed that parts of some_variable get cut out if they include certain 
characters.

For example... "/search/?search=" seems to get replace with "/search/".  What 
is the part after "?" cut off?

(I have same problem even if I do {{some_variable|safe}}.

Chris
--
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
django-users+unsubscr...@googlegroups.com<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to 
django-users@googlegroups.com<mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/67ee6682-048f-442c-8fd5-859932dc6881%40googlegroups.com<https://groups.google.com/d/msgid/django-users/67ee6682-048f-442c-8fd5-859932dc6881%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b68cc378ff9f4eeaa7c5db34d2c65212%40ISS1.ISS.LOCAL.
For more options, visit https://groups.google.com/d/optout.

Reply via email to