WordPress.org

Support

Support » How-To and Troubleshooting » anchor href resets when saving

anchor href resets when saving

  • redhandler
    Member

    @redhandler

    I’m a WP-newbie, so pls forgive me if this is a dumb question.

    I’ve created a Page, that contains Anchors and internal links to these anchors.

    For example
    <a name="top"></a> as an anchor tag at top of page

    and as the page is long in various locations:
    <a href="#top">back to top</a>

    If I check the Page immediately after saving in IE7, all works fine.

    However if I Manage > Pages > Edit this page and look at “Code”, the anchor href changed to:
    <a href="http://mydomain.com/wp-admin/#top">back to top</a>

    If I make another change to the Page and Save, the links no longer work as they are jumping to mydomain.com/wp-admin, which naturally is not a page containing that particular anchor.

    Is this “issue” s.th that is easily resolved?

    Many thanks for your help.


    WordPress 2.3.1
    Apache version 1.3.37 (Unix)
    PHP version 5.2.1
    MySQL version 5.0.45-community

Viewing 1 replies (of 1 total)
  • redhandler
    Member

    @redhandler

    ok, issue resolved, thought I’d post for others:

    I used a Javascript in my code to scramble email address details. After I changed that to a Widget the issue disappears.

    So it seems that “CODE”-editor, doesn’t like Javascript inclusion.

Viewing 1 replies (of 1 total)
  • The topic ‘anchor href resets when saving’ is closed to new replies.