Relative hyperlinks repeat after editing a page

Last post 06-11-2005, 3:58 PM by Adam. 2 replies.
Sort Posts: Previous Next
  •  06-11-2005, 10:39 AM 7481

    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...
  •  06-11-2005, 3:57 PM 7486 in reply to 7481

    Re: Relative hyperlinks repeat after editing a page

    Editor.UseSimpleAmpersand Property

    W3C recommend that all '&' in query strings be converted to &amp; This is the only way to get a piece of HTML validated. The reason is that & is the start of an HTML entity, such as &pound;

    So this:


            <a href="page.aspx?var1=one&amp;va­r2=two">link</a>
    is valid, whereas:
            <a href="page.aspx?var1=one&var2=t­wo">link</a>
    isn't.
    If you still want to use simple Ampersand in query strings, you can set this property to true. if you want to retrieve the CuteEditor HTML content in XHTML format, the 'UseSimpleAmpersand' property will be ignored.


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  06-11-2005, 3:58 PM 7487 in reply to 7486

    Re: Relative hyperlinks repeat after editing a page

    Please note that the UseSimpleAmpersand property is only available in the version 4.5.
     
    Please download the latest provider from:
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML