1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Url stripping in RadEditor in newsletter seems not to work

Url stripping in RadEditor in newsletter seems not to work

6 posts, 1 answered
  1. Chris Hofgen
    Chris Hofgen avatar
    10 posts
    Registered:
    28 Jan 2010
    11 Mar 2010
    Link to this post

    Hi,

    I have problem with in the newsletter module RadEditor with the options:

    StripAbsoluteAnchorPaths="true" AnchorPathToStrip="http://localhost/public/Sitefinity/Admin/"

    They dont't seem to work. No matter what i do.
     I want the URL "http://localhost/public/Sitefinity/Admin/#anchorname1" be stripped to just the #anchorname part.

    In the Generic content editor I use the option "StripAbsoluteImagesPaths" and that seems to work.

    Do I something wrong? Or does it just not work in the newsletter?

  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    11 Mar 2010
    Link to this post
    Hello Chris Hofgen,

    Thank you for using our services.

    Could you please tell us exactly which version of Sitefinity are you using (follow steps from this article)? The property which you are using is obsolete. If you are editing the content with IE browser this behavior will happen if you are not using the IECleanAnchors content filter. The Generic Content RadEditor has this content filter used by default so this is probably why you are getting correct anchors in GC. You can find more information on how to set content filters for the RadEditor here.

    Kind regards,
    Radoslav Georgiev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
    Answered
  3. Chris Hofgen
    Chris Hofgen avatar
    10 posts
    Registered:
    28 Jan 2010
    12 Mar 2010
    Link to this post
    Thank you Radoslav for you quick response.
    But only to bad it looks like it does'nt work. I have added the contentfilter like in the GC

    ContentFilters

     

    ="EncodeScripts,FixUlBoldItalic,FixEnclosingP,IECleanAnchors,MozEmStrong,ConvertFontToSpan,ConvertToXhtml,IndentHTMLContent">

     


    So the IECleanAnchors should work. Right?
    But it does not. I still get the url  "http://localhost/public/Sitefinity/Admin/#anchorname1".

    And I have a other problem. But I think it is related, or a least similar. In the Events editor the and it is basicly for short term solution, we want to use a mailto link, but with a subject and body. Now the editor strips the Url encoding like %20 ect. And it would not be a problem, as also the newline codes  "%3A%0D%0A" are stripped. So you can not  format / layout  the body anymore. Can this behaviour be suppressed by the content filters

    By the way, I did not test / use the anchor  the behavior in the GC, but the images paths. I used the "StripAbsoluteImagesPaths" there, not the "StripAbsoluteAnchorPaths". And it seems like that one is working.

    It is voor a different situation. Namely we have deployed the website in two IIIS applications, one public without the editing admin part accessiable, and a authoring site, both on the database. So before some images had the absolute url to the authoring site. And until now it looks like their still relatieve.
    But I have to admit the site content is now not changing a lot, and in testing I could not reproduce the behaviou anymore.

    (I have a question, or better I would like to here you opinion about the 2 site hosting, I am using a junction point for the search indexes folder for having the up to date index on the public site, but this is mayby something for a different post.) 

    And sorry I haven't added the Sitefinity version in my starting post.
    We use the lates version 3.7.2057.2 - standard (.Net 3.5)
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    17 Mar 2010
    Link to this post
    Hi Chris Hofgen,

    Thank you for getting back to us.

    I have found why the links were getting resolved to absolute paths and fixed the issue. The reason for this is because we resolve relative paths for items linked from Sitefinity - images, documents, pages, etc. This is necessary so that they do not appear as broken links in the newsletter e-mail, since those links are not accessed in the context of your website. Along the way with those links the named anchors are also resolved to absolute paths.

    As I said above I have fixed the issue with named anchors and now when the content is saved they do not get resolved to a faulty absolute path. Unfortunately the methods which had to be fixed are declared as private and I am afraid this fix will not be available until a later release.

    All the best,
    Radoslav Georgiev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  5. Chris Hofgen
    Chris Hofgen avatar
    10 posts
    Registered:
    28 Jan 2010
    04 May 2010
    Link to this post
    Greetings,

    I have just updated to 3.7 SP3. But the anchor links are still changed to absolute links afer saving!

     
  6. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    04 May 2010
    Link to this post
    Hello Chris Hofgen,

    Unfortunately the fix has been made after the SP3 build was released. The fix will be available in the next one.

    Best wishes,
    Radoslav Georgiev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Register for webinar
6 posts, 1 answered