Relative hyperlinks repeat after editing a page

  •  06-11-2005, 10:39 AM

    Relative hyperlinks repeat after editing a page

    In DNN 2.1.2, when I set the web.config to RemoveServerNamesFromUrl="true", the RTB nicely complies. When I've created a page with content that displays a relative hyperlink and then go back in and EDIT that same page, the hyperlink I already created replicates itself and becomes unusable.

    For example, I go to a current site in development at http://site269.webhost4life.com/disciple and I create a doc, and write this code in it...
    This is a <a href="Default.aspx?tabid=35&productid=149&page=0">hyperlink</a>
    The RTB saves this properly.
    When I click on EDIT to go back and edit this text again, the HTML in this control looks like this:
    This is a <a href="http://site269.webhost4life.com/disciple/Default.aspx?tabid=35&amp;productid=149Default.aspx?tabid=35Default.aspx?tabid=35&amp;productid=149Default.aspx?tabid=35&amp;productid=149Default.aspx?tabid=35&amp;productid=149Default.aspx?tabid=35&amp;productid=149&amp;page=0">hyperlink</a>

    So sometimes I have a lot of hyperlinks on a page and I have to redo the whole page if I want to edit it.

    I would like to continue to use relative hyperlinks because the domain name of this site will change and I would like the links to not break.
    Also, we often create a staging site for development, and when we go to production, we would like to just migrate the data, so we need relative hyperlinks.

    Perhaps the issue is being aple to deal properly with Querytstrings...
View Complete Thread