Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Forcing absolute URLs in TelerikForcing absolute URLs in Telerik
Previous
 
Next
New Post
8/10/2011 2:30 PM
 
I'm running a new install of DNN 5.6.x, and have run into a problem. The Telerik editor is stripping the absolute URLs from my html, even though I explicitly put them in the content. This is causing a problem because it's stripping the URL to an international site that has a very similar domain name when linking to it. 

In other words, I want:
...
<a href="http://www.searchengineacademy.com.au//somepage" target="_blank">
...

But because the site domain is http://www.searchengineacademy.com, no matter what I do, it's stripping out the url and making the html look like:

...
<a href=".au/somepage" target="_blank">
...

Aargh. How do I turn off the stripping of the absolute URLs? Is there a setting in the web.config file? I looked on the Telerik site, and they said talk to DNN. The old web.config settings to force absolute URLs doesn't work in the DNN version.

Thanks for anyone who can shed some light!
Tom
 
New Post
8/10/2011 4:33 PM
 
you can customize the behaviour of the editor, this is a lot easier in DotNetNuke 6 as theres a page to manage settins, but the wiki has an article thats relevant for 5.x http://www.dotnetnuke.com/Resources/Wiki/Page/Telerik-Customization.aspx . AFAIR you set StripAbsoluteImagesPaths and StripAbsoluteAnchorPaths to false.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
8/12/2011 2:30 PM
 
Hi Cathal, My sincere thanks. In trying to decipher the documentation, what I gather is that I need to add two lines to the /Providers/HtmlEditorProviders/Telerik/Config/ConfigDefault.xml file:

<property name="StripAbsoluteAnchorPaths">False</property>
<property name="StripAbsoluteImagesPaths">False</property>


Which I did, and this did not seem to have an effect one way or the other. 

Similarly, it's stripping out Javascript code from the HTML too.

Any thoughts or am I in the wrong place? 

Thank you!
Tom
 
New Post
8/12/2011 2:44 PM
 
you may need to recyle the site to make up the changed configuration i.e. host->host settings, restart application. The stripping out of javascript code is expected - you can set RemoveScripts to false to change that.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
8/12/2011 3:59 PM
 
Hi Cathal, just confirming I have the correct file above? I have done as you suggested, added these lines:

False
False
False

And recycled the app with the host settings->restart application to no avail.

I've restarted it twice just to be sure.

Thank you.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Forcing absolute URLs in TelerikForcing absolute URLs in Telerik


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out