Abbas
Abbas

Hi, I'm trying to use current page URL with the comments component but I have no idea how to do so.

[mycomp]
currentPage = ???
==
{% component 'mycomp' %}

I tried many things like

currentPage = {{page.url}}
currentPage = {{this.page.url}}

but nothing works so far. Any idea?

Thanks, Abbas

webBook
webBook

What about $this->page['baseFileName']

daftspunk
daftspunk

{{ ''|page }} will do it or {{ this.controller.currentPageUrl() }}

1-3 of 3