WordPress.org

Ready to get started?Download WordPress

Forums

anchor href resets when saving (2 posts)

  1. redhandler
    Member
    Posted 6 years ago #

    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

  2. redhandler
    Member
    Posted 6 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic