# IPFS Companion not switching to local Gateway even when X-Ipfs-Path is provided

**URL:** <https://discuss.ipfs.tech/t/ipfs-companion-not-switching-to-local-gateway-even-when-x-ipfs-path-is-provided/9700>\
**Category:** Help\
**Created:** [December 27, 2020, 3:31pm UTC](https://discuss.ipfs.tech/t/ipfs-companion-not-switching-to-local-gateway-even-when-x-ipfs-path-is-provided/9700 "2020-12-27T15:31:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/simon/32/4337_2.png) [@simon](https://discuss.ipfs.tech/u/simon)\
**Post date:** [December 27, 2020, 3:31pm UTC](https://discuss.ipfs.tech/t/ipfs-companion-not-switching-to-local-gateway-even-when-x-ipfs-path-is-provided/9700/1 "2020-12-27T15:31:17Z")

</div>

Hi all,

I tried to setup a site that provides X-Ipfs-Path and has a DNSLink and I was hoping that users with the companion would be redirected to their local gateway, but that is not working.

Since I am a new user on this forum, I am limited to max 2 urls in a post, so I cannot give all the details here. Please see them here [https://github.com/ipfs-shipyard/ipfs-companion/issues/953](https://github.com/ipfs-shipyard/ipfs-companion/issues/953) and let me know if I am missing something in my setup or if that is really a bug.

thanks

---

<div class="post-metadata">

**Author:** ![hector](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/hector/32/178_2.png) [@hector](https://discuss.ipfs.tech/u/hector)\
**Post date:** [December 29, 2020, 5:01pm UTC](https://discuss.ipfs.tech/t/ipfs-companion-not-switching-to-local-gateway-even-when-x-ipfs-path-is-provided/9700/2 "2020-12-29T17:01:12Z")

</div>

I have bumped your trust level so you should be able to post links.

Also, anyone see link above for resolution (bug in Companion).
