1

I need Twitter tweet button below every blog post. How do I make {% pageurl %} return an absolute URL of that specific blog post?

Thanks

1
  • You models.py , template and view code please ??? Commented Sep 19, 2018 at 12:25

1 Answer 1

2

Instead of {% pageurl my_page %}, use {{ my_page.full_url }}.

Sign up to request clarification or add additional context in comments.

2 Comments

full_url has no port in it, for example, I'm running wagtail at localhost:8000, but full_url only shows my localhost, no 8000
@avocado Set the port number under Settings -> Sites within the Wagtail admin.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.