1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.1 How do I post a local link without domain name?

Discussion in 'XenForo Questions and Support' started by Kacee, Nov 24, 2011.

  1. Kacee

    Kacee Member

    I tried to post a link with an URL "/forums/news/" but it became "http:///forums/news/"

    How do you do it? Is it even possible?
  2. Fuhrmann

    Fuhrmann Well-Known Member

    You can use this
    <a href="{xen:link forums/news}">News</a>
  3. Mike

    Mike XenForo Developer Staff Member

    Links inside posts have to be absolute.
  4. Kacee

    Kacee Member

    Is it any reason behind this?
    Sorry I wasn't clear, I was talking about insert links it posts.
    Is there any reason behind this? I thought it would be better to use relative URL in case you change your domain?
  5. Mike

    Mike XenForo Developer Staff Member

    A design decision really, partially to white list allowed protocols.

Share This Page