# Absolute links being rendered as relative

**URL:** https://community.prismic.io/t/absolute-links-being-rendered-as-relative/7533
**Category:** Prismic for Content Creators
**Created:** [October 19, 2021, 4:43pm UTC](https://community.prismic.io/t/absolute-links-being-rendered-as-relative/7533 "2021-10-19T16:43:47Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![marcus](https://avatars.discourse-cdn.com/v4/letter/m/85e7bf/32.png) [@marcus](https://community.prismic.io/u/marcus)
#### Post date: [October 19, 2021, 4:43pm UTC](https://community.prismic.io/t/absolute-links-being-rendered-as-relative/7533/1 "2021-10-19T16:43:47Z")

</div>

I want to do an extremely simple thing: have a menu item link to a web page. I go into to my global settings and see the menu contents; the link was originally pointing at an internal page, but I want to repoint it an external one, so I change its type to "link to the web", and put in my URL. But it's misrendered, appending my absolute URL to the current domain, so if my site is at:

```
https://www.example.co

```

and I set the link target to

```
https://elsewhere.example.co/login

```

the URL in the resulting link is rendered as

```
https://www.example.co/https://elsewhere.example.co/login

```

This is of course completely useless! This link goes to a 404 page, but retaining the URL, and since the menu appears on that page too, the link then offers to send me to

```
https://www.example.co/https:/elsewhere.example.co/https:/elsewhere.example.co/login

```

and I can keep going, adding a bit more to the URL with each click. Note the strange munging of `//` into `/`, and it stripping the trailing `/login` path in those intermediate URLs on the 404 page. I am absolutely certain that the URL I'm providing is the link target is correct, and does not contain only a single `/` – here it is in the UI:

![image](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/9/906cbf8282b2f69df260912fafd42930c42cc42c.png)

It's also very odd because I saw in other posts that prismic doesn't support relative links?!

So why won't prismic link to a simple absolute URL?

---

<div class="post-metadata">

### Author: ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)
#### Post date: [October 20, 2021, 8:07pm UTC](https://community.prismic.io/t/absolute-links-being-rendered-as-relative/7533/2 "2021-10-20T20:07:37Z")

</div>

That absolute link should be working just fine. Maybe there's a problem in how you're rendering the link URL on the front end. Could you show me a code snippet of the menu?

---

<div class="post-metadata">

### Author: ![marcus](https://avatars.discourse-cdn.com/v4/letter/m/85e7bf/32.png) [@marcus](https://community.prismic.io/u/marcus)
#### Post date: [October 21, 2021, 9:59am UTC](https://community.prismic.io/t/absolute-links-being-rendered-as-relative/7533/4 "2021-10-21T09:59:55Z")

</div>

I'm not aware of having any code – this was set up by an external developer. How do I get to it in the prismic UI?

---

<div class="post-metadata">

### Author: ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)
#### Post date: [October 22, 2021, 12:29am UTC](https://community.prismic.io/t/absolute-links-being-rendered-as-relative/7533/5 "2021-10-22T00:29:57Z")

</div>

The problem is likely coming from the code. You may need to ask the developer in charge of your project for help. If you have access to the code and need help finding the error, we can assist you.

---

<div class="post-metadata">

### Author: ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)
#### Post date: [October 27, 2021, 2:26pm UTC](https://community.prismic.io/t/absolute-links-being-rendered-as-relative/7533/6 "2021-10-27T14:26:31Z")

</div>

This thread has been closed due to inactivity. [Flag to reopen](https://community.prismic.io/t/re-open-a-thread/2175).

---

<div class="post-metadata">

### Author: ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)
#### Post date: [December 9, 2021, 12:32pm UTC](https://community.prismic.io/t/absolute-links-being-rendered-as-relative/7533/7 "2021-12-09T12:32:49Z")

</div>


