XF 1.3 Pages & HTML

Chimpie

Well-known member
I'm having a problem with creating a link within a page to jump to another part of the page.

I've created a test page w/in my XF forum and on a different site as a simple page to show the difference.

Separate site: http://chimpie.com/sandbox2/test-link.php

XF: http://emtlife.com/pages/test-link/

If you go to the top link, you will see a link to jump to Chapter 4. Clicking it will take you to that chapter, theoretically.

If you go to the XF link, which uses the exact same code, clicking on the Chapter 4 link takes you make to the main forum page, looking for that tag, which of course doesn't exist.

What do I need to do so that in my XF page that link will work correctly?
 
It's because of the base tag:

HTML:
<base href="http://emtlife.com/" />

All URLs within XenForo are relative to the base URL. On your old page, all URLs were relative to the path that page is in.
 
Top Bottom