# The $Build.LinkUrl$ expands to a URL with host set to 'localhost'

**URL:** https://www.finalbuilder.com/forums/t/the-build-linkurl-expands-to-a-url-with-host-set-to-localhost/5271
**Category:** Discussion
**Created:** [November 11, 2014, 7:49am UTC](https://www.finalbuilder.com/forums/t/the-build-linkurl-expands-to-a-url-with-host-set-to-localhost/5271 "2014-11-11T07:49:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![karmasponge](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/k/4491bb/32.png) [@karmasponge](https://www.finalbuilder.com/forums/u/karmasponge)
#### Post date: [November 11, 2014, 7:49am UTC](https://www.finalbuilder.com/forums/t/the-build-linkurl-expands-to-a-url-with-host-set-to-localhost/5271/1 "2014-11-11T07:49:12Z")

</div>

I pass the ‘$Build.LinkUrl$’ variable to a&nbsp;powershell script (through a ‘Execute Program’ action) which then publishes the information to ‘slack’.  
Unfortunately the variable expands to a URL starting with ‘[http://localhost/](http://localhost/)’&nbsp;which is obviously no good for external clients.  
  
Is there a configuration for this or is this a bug?

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [November 11, 2014, 8:07am UTC](https://www.finalbuilder.com/forums/t/the-build-linkurl-expands-to-a-url-with-host-set-to-localhost/5271/2 "2014-11-11T08:07:32Z")

</div>

Yes, under admin, Continua Server, Properties, set the Server.HostUrl to [http://yourhostname](http://yourhostname) - this property is used when creating the linkurl

---

<div class="post-metadata">

### Author: ![karmasponge](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/k/4491bb/32.png) [@karmasponge](https://www.finalbuilder.com/forums/u/karmasponge)
#### Post date: [November 11, 2014, 8:17am UTC](https://www.finalbuilder.com/forums/t/the-build-linkurl-expands-to-a-url-with-host-set-to-localhost/5271/3 "2014-11-11T08:17:36Z")

</div>

Cool, thanks!
