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

XF 1.2 Anchor tags on pages

Discussion in 'XenForo Questions and Support' started by jauburn, Nov 27, 2013.

  1. jauburn

    jauburn Well-Known Member

    On a xenforo page, I'm having trouble getting traditional HTML links to in-page anchors to work. When you click the link, it goes to the forum home. Anchors are defined correctly and linked to correctly n the HTML itself, but when the HTML is put into a xenforo page, the links don't work. Any ideas?
  2. Jeremy

    Jeremy Well-Known Member

    When you say a page, are you talking about a page node? Do you have a link?
  3. jauburn

    jauburn Well-Known Member

    Yeah. This is a test; I know it's ugly: http://poetrycircle.com/forum/pages/lynndoiron/

    The links on the right are to anchors within the html
  4. Brogan

    Brogan XenForo Moderator Staff Member

    The anchor URLs are incorrect: http://poetrycircle.com/forum/#eros

    The /pages route is missing.
  5. jauburn

    jauburn Well-Known Member

    Maybe I'm misunderstanding something. In the HTML page that I compose, the anchors work just fine in preview. If I transfer the HTML to Xenforo as a "page," the anchors don't work. So I need to somehow alter the HTML to include the ultimate page URL?
  6. Jeremy

    Jeremy Well-Known Member

    The base URL tag is taking effect and causing incorrect anchors.
  7. jauburn

    jauburn Well-Known Member

    Thanks. I figured it out. It involves knowing the ultimate page URL and putting that manually into the HTML.

Share This Page