# Issues with built urls

**URL:** <https://zola.discourse.group/t/issues-with-built-urls/1798>\
**Category:** Support\
**Created:** [July 9, 2023, 1:28pm UTC](https://zola.discourse.group/t/issues-with-built-urls/1798 "2023-07-09T13:28:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ewan88](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/ewan88/32/1033_2.png) [@Ewan88](https://zola.discourse.group/u/Ewan88)\
**Post date:** [July 9, 2023, 1:28pm UTC](https://zola.discourse.group/t/issues-with-built-urls/1798/1 "2023-07-09T13:28:06Z")

</div>

I am learning to use Zola and I am encountering a problem when using the static build.

Everything works fine when serving the application but when I build the application and then try to navigate the urls they do not prepend the base url.

For example I have two urls:

- /example
- /

The `/` url loads fine initially but when I activate a link to navigate to (or fetch from) the `/example` url I get a 404. The same occurs when I activate a link back to `/`.

This happens because the base url is not prepended to any of my links inside the application.

Where I expect to get `baseurl.com/my_site/example` I instead get `baseurl.com/example`

And on local build I get `C:/example` instead of `C:/path_to_directory/example`.

I am using the base\_url in config.toml as the url I am deploying to - `https://baseurl.com/my_site`.

Does anyone have any ideas?

Thanks.

---

<div class="post-metadata">

**Author:** ![Ewan88](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/ewan88/32/1033_2.png) [@Ewan88](https://zola.discourse.group/u/Ewan88)\
**Post date:** [July 9, 2023, 2:49pm UTC](https://zola.discourse.group/t/issues-with-built-urls/1798/2 "2023-07-09T14:49:16Z")

</div>

I think the solution is to use `get_url(path='@')`
