Render current URL in template file
-
Hi,
I am in the process of developing a NodeBB theme, and was wondering if it is possible to get the current URL in a .tpl file. Maybe something like
{current_url}
?Thanks for the help!
-
https://github.com/NodeBB/NodeBB/commit/8ea5752b506637803d09b546eadc7fde55f5ff2d
It will be available in all routes, you can use it with
{url}
Copyright © 2025 NodeBB | Contributors