# How to replace the default webui by a new version?

**URL:** <https://discuss.ipfs.tech/t/how-to-replace-the-default-webui-by-a-new-version/11777>\
**Category:** Kubo\
**Tags:** swarm\
**Created:** [July 17, 2021, 9:42pm UTC](https://discuss.ipfs.tech/t/how-to-replace-the-default-webui-by-a-new-version/11777 "2021-07-17T21:42:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shazz](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/shazz/32/5275_2.png) [@shazz](https://discuss.ipfs.tech/u/shazz)\
**Post date:** [July 17, 2021, 9:42pm UTC](https://discuss.ipfs.tech/t/how-to-replace-the-default-webui-by-a-new-version/11777/1 "2021-07-17T21:42:46Z")

</div>

Hi,

I have some issues with the default webui in swarm mode (302 redirects forever). I cloned, built the latest webui and added to my IPFS node  
`added QmcJ6JchgpNHyuADGDCuFN4CBadEYyB2DgfBVMwJnJpEA6 build`

Checked, well added: `http://node_ip:8080/ipfs/QmcJ6JchgpNHyuADGDCuFN4CBadEYyB2DgfBVMwJnJpEA6/#/welcome`

but `http://node_ip:5001/webui` still redirects to `/ipfs/bafybeid26vjplsejg7t3nrh7mxmiaaxriebbm4xxrxxdunlk7o337m5sqq`.

How to update the configuration to point to the new hash ?

Thanks!

Current issue with webgui:

```auto
curl -IL http://127.0.0.1:5001/webui
HTTP/1.1 301 Moved Permanently
Content-Type: text/html; charset=utf-8
Location: /webui/
Date: Sat, 17 Jul 2021 21:51:14 GMT

HTTP/1.1 302 Found
Content-Type: text/html; charset=utf-8
Location: /ipfs/bafybeid26vjplsejg7t3nrh7mxmiaaxriebbm4xxrxxdunlk7o337m5sqq
Date: Sat, 17 Jul 2021 21:51:14 GMT

HTTP/1.1 301 Moved Permanently
Content-Type: text/html; charset=utf-8
Location: /ipfs/bafybeid26vjplsejg7t3nrh7mxmiaaxriebbm4xxrxxdunlk7o337m5sqq/
Date: Sat, 17 Jul 2021 21:51:14 GMT

```

---

<div class="post-metadata">

**Author:** ![shazz](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/shazz/32/5275_2.png) [@shazz](https://discuss.ipfs.tech/u/shazz)\
**Post date:** [July 18, 2021, 11:29pm UTC](https://discuss.ipfs.tech/t/how-to-replace-the-default-webui-by-a-new-version/11777/2 "2021-07-18T23:29:00Z")

</div>

I found [swarm tutorials](https://github.com/ahester57/ipfs-private-swarm/blob/master/WEBUI.md) that go-ipfs needs to be recompiled to set the hash for the webui ( `core/corehttp/webui.go`).  
Is it the only way ?

---

<div class="post-metadata">

**Author:** ![SionoiS](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/sionois/32/5103_2.png) [@SionoiS](https://discuss.ipfs.tech/u/SionoiS)\
**Post date:** [July 20, 2021, 12:28pm UTC](https://discuss.ipfs.tech/t/how-to-replace-the-default-webui-by-a-new-version/11777/3 "2021-07-20T12:28:46Z")

</div>

Can’t you just make a shortcut to the new web UI?

[http://bafybeiflkjt66aetfgcrgvv75izymd5kc47g6luepqmfq6zsf5w6ueth6y.ipfs.localhost:8080](http://bafybeiflkjt66aetfgcrgvv75izymd5kc47g6luepqmfq6zsf5w6ueth6y.ipfs.localhost:8080)

---

<div class="post-metadata">

**Author:** ![shazz](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/shazz/32/5275_2.png) [@shazz](https://discuss.ipfs.tech/u/shazz)\
**Post date:** [July 20, 2021, 7:03pm UTC](https://discuss.ipfs.tech/t/how-to-replace-the-default-webui-by-a-new-version/11777/4 "2021-07-20T19:03:50Z")

</div>

How does it work outside localhost? (my ipfs server is headless)

I found a solution:

```auto
curl https://ipfs.io/api/v0/get/bafybeid26vjplsejg7t3nrh7mxmiaaxriebbm4xxrxxdunlk7o337m5sqq| tar xf -
ipfs add --cid-version 1 -r bafybeid26vjplsejg7t3nrh7mxmiaaxriebbm4xxrxxdunlk7o337m5sqq

```

Then the default webui at least works.
