Right now we can check if entry.uri is empty, but it would be helpful to have a craft.request.isHome helper.
I wouldn鈥檛 say that being on the homepage is a property of the _request_. There is no homepage, even if you access /, if you鈥檙e running Headless Mode for example. I did just add a getisHomepage() method to elements though, so you could start doing
{% if entry.isHomepage ?? false %}
Most helpful comment
I wouldn鈥檛 say that being on the homepage is a property of the _request_. There is no homepage, even if you access
/, if you鈥檙e running Headless Mode for example. I did just add agetisHomepage()method to elements though, so you could start doing