Forums

Links in text widget clash with permalink (3 posts)

  1. Philsmith
    Member
    Posted 1 year ago #

    Permalink seems great BUT I want to put a simple href link in a text widget in the side bar like go here for more info

    But this is interpretted as http://www.blogdomain.com/www.mydomain2.com which of course gets us nowhere.

    Is there some sort of escape code so that hrefs work as normal hrefs when this is what is wanted?

    New to wordpress but not to websites.

  2. stvwlf
    Member
    Posted 1 year ago #

    use absolute links, not relative links. In other words, use

    href="http://www.mydomain2.com/my-page/my-sub-page/" or, if you are linking to a URL in the same installation, at the least
    href="/my-page/my-sub-page/" where /my-page indicates a folder or page in the web root folder.

    If you use relative links like href="my-page/my-sub-page" in a CMS you will have problems because the page can be displayed from different virtual positions in the folder hierarchy, thus what gets tacked onto the left end, in accordance with where the link is called from, at times will not be what you think it should be.

  3. Philsmith
    Member
    Posted 1 year ago #

    Thank you - that worked
    Phil

Topic Closed

This topic has been closed to new replies.

About this Topic