title: How to get current URL in jinja2/flask (request.url not working)
body: <p>Is there a way to print the current URL in Jinja2/Flask?</p>
  
  <p>E.g. if the current URL is <code>http://www.domain.com/example/1/2</code></p>
  
  <p><code>{{ request.path }}</code> works and prints <code>/example/1/2</code>, but how to I get the full URL with http:// as well?</p>
  
  <p>From the docs <a href="http://flask.pocoo.org/docs/0.10/api/#flask.Request.url">(here)</a><code>{{ request.url }}</code> should work, but it doesn't yield anything.</p>
  
  <p>Thanks</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Here are the render/context args from views.py:</p>
  
  <pre><code>class EventDetailView(EventObjectMixin, FormView):
      template_name = 'gig/public/about.html'
      context_object_name = 'event'
      form_class = EventPurchaseTicketForm
  
      def get_context_data(self, **kwargs):
          context = super(EventDetailView, self).get_context_data(**kwargs)
  
      ...
  
          return context
  </code></pre>