Add variable $currentUrl into templates