Re: problem: extra / added to some links

  •  05-28-2009, 7:39 AM

    Re: problem: extra / added to some links

    No, I was unable to reproduce it in the test page you provided.
     
    I've had time to do some test since my first post, and it would seem to only happen when I set the UrlType property programmatically.
     
    So here's my test code.
     
    -------------------------------------------------------------------------------
    <!-- #include file = "CuteEditor_Files/include_CuteEditor.asp" -->
    <html> 
     <head>
      <link rel="stylesheet" href="asp.css"  type="text/css" />
     </head>
     <body>
      &lt;a href="http://?user?.somesite.com"&gt;http://?user?.somesite.com&lt;/a&gt;
      <br><br>
      <form name="theForm" action="Get_HtmlContent.asp" method="post" ID="Form1">
      <%
        Dim editor
         Set editor = New CuteEditor
         editor.ID = "Editor1"
         editor.Text = ""
         editor.FilesPath = "CuteEditor_Files"
       
       'editor.URLType = "Absolute"
       'editor.URLType = "SiteRelative"
       
       
         editor.Draw()
       %>      
      </form>
     </body>
    </html>
    -------------------------------------------------------------------------------
     
    So to reproduce, just take this code and the url that shows up in the web page. Once the page loads switch the editor to HTML mode, paste the link, switch back to normal. If the URLType lines are commented the link will be just fine. If you uncomment either line you will get an extra /.
     
    Thanks in advance for your help.
View Complete Thread