How to get the current url in Hugo

🆕 🔜 Check this out if you dream of running a solo Internet business 🏖️

{{ trim .Page.RelPermalink "/"}}

This is the result:

yoursite.com/ebooks -> "ebooks"
yoursite.com/ebooks/php -> "ebooks/php"