# Get\_url(path=current\_path, lang="en" ) chops off the final slash

**URL:** <https://zola.discourse.group/t/get-url-path-current-path-lang-en-chops-off-the-final-slash/2166>\
**Category:** Uncategorized\
**Created:** [June 13, 2024, 5:08pm UTC](https://zola.discourse.group/t/get-url-path-current-path-lang-en-chops-off-the-final-slash/2166 "2024-06-13T17:08:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adrianboston](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/adrianboston/32/907_2.png) [@adrianboston](https://zola.discourse.group/u/adrianboston)\
**Post date:** [June 13, 2024, 5:08pm UTC](https://zola.discourse.group/t/get-url-path-current-path-lang-en-chops-off-the-final-slash/2166/1 "2024-06-13T17:08:35Z")

</div>

Get\_url(path=current\_path, lang=“en” ) chops off the final slash

Is that expected?

---

<div class="post-metadata">

**Author:** ![xpe](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/xpe/32/416_2.png) [@xpe](https://zola.discourse.group/u/xpe)\
**Post date:** [June 18, 2024, 8:48pm UTC](https://zola.discourse.group/t/get-url-path-current-path-lang-en-chops-off-the-final-slash/2166/2 "2024-06-18T20:48:28Z")

</div>

Yes. You can see this mentioned in the [`get_url` documentation](https://www.getzola.org/documentation/templates/overview/#get-url).

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=true` to the `get_url` function.

Note: this behavior was a breaking change released in Zola 0.14.0 (2021-07-19). From the CHANGELOG:

```md
- `get_url` now defaults to not adding a trailing slash

```

---

<div class="post-metadata">

**Author:** ![adrianboston](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/adrianboston/32/907_2.png) [@adrianboston](https://zola.discourse.group/u/adrianboston)\
**Post date:** [June 18, 2024, 9:23pm UTC](https://zola.discourse.group/t/get-url-path-current-path-lang-en-chops-off-the-final-slash/2166/3 "2024-06-18T21:23:01Z")

</div>

was that always there in the doc. i cant believe my eyes missed it. thanks
