Seems like it should be pretty straightforward, but I'm having a really hard time finding an answer.
How do you find the current page's URL within a Nunjucks template?
Something like this would be perfect:
<a href="{{ page.url }}">Some link</a>
Seems like it should be pretty straightforward, but I'm having a really hard time finding an answer.
How do you find the current page's URL within a Nunjucks template?
Something like this would be perfect:
<a href="{{ page.url }}">Some link</a>
depends on attributes of your request obejct, if it's wsgi request from django, I simply print it as {{ request.build_absolute_uri }}