Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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}?
{current_url}
Thanks for the help!
@geek Try with location.href
location.href
https://github.com/NodeBB/NodeBB/commit/8ea5752b506637803d09b546eadc7fde55f5ff2d
It will be available in all routes, you can use it with {url}
{url}