anchor article

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • domdom
    Member
    • Oct 2018
    • 98
    • 5.6.4

    anchor article

    Hello,

    Is it possible to remove, modify, change... the root link of my site:

    Example: www.mysite.com/page1/#test on page1/#test.

    I want to insert an anchor in an article (in html) but when I write:
    <a href="#test"....</a>
    systematically I find myself with the address: www.mysite.com/#test

    Thank you. Thank you.

    Domi

  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 74111

    #2
    This is caused by the base tag present on every page and is critical to the operation of vBulletin. In order to use Anchors in your custom HTML, you'll need to use absolute URLS followed by the anchor..
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • domdom
      Member
      • Oct 2018
      • 98
      • 5.6.4

      #3
      Too bad there is not an option to disable this.
      For example, if the tag "#my-anchor" ONLY is detected, consider that it is an anchor in the same page.

      This is an option that would be very useful, because when I visit the forums, I notice that this request is made several times.

      Regards.

      Comment

      • Wayne Luke
        vBulletin Technical Support Lead
        • Aug 2000
        • 74111

        #4
        You can most likely accomplish this with two custom BBCodes.


        [link=anchorname]Optional Text[/link] - replacement: <a name="{option}">{param}</a>, use {option} = Yes.
        [anchor=anchorname]Link Text[/anchor] - replacement: <a href="#{option}">{param}[/anchor], use {option} = Yes.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...