Bug: home_url missing trailing / (slash) on home
Grav version 1.7.44 and 1.7.43
From the docs:
The home_url is particularly useful to use to link back to the homepage of your site. It is similar to base_url but takes the currently active language into account.
Description:
On home (index) {{ home_url }} returns the home_url without trailing / slash: https://localhost/mysite returns /mysite
On subpages a trailing slash is correctly added: https://localhost/mysite/subpage returns /mysite/
Expected output:
On home (index) {{ home_url }} returns the home_url with trailing / slash: https://localhost/mysite returns /mysite/
Impact: Consistency - this becomes a concern when the site should be crawled by search engines, or re-written by static-site generators.
Current workaround: extend template php to add a slash, if needed. See: oxygen.php