Get_url(path=current_path, lang=“en” ) chops off the final slash
Is that expected?
Get_url(path=current_path, lang=“en” ) chops off the final slash
Is that expected?
Yes. You can see this mentioned in the get_url documentation.
You probably want to use the trailing_slash option:
By default, the link will not have a trailing slash. You can force one by passing
trailing_slash=trueto theget_urlfunction.
Note: this behavior was a breaking change released in Zola 0.14.0 (2021-07-19). From the CHANGELOG:
- `get_url` now defaults to not adding a trailing slash
was that always there in the doc. i cant believe my eyes missed it. thanks