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

Forums / Developing with Sitefinity / SSL and Links in Generic Content

SSL and Links in Generic Content

4 posts, 0 answered
  1. Travis
    Travis avatar
    86 posts
    Registered:
    15 Oct 2008
    04 Feb 2011
    Link to this post
    Hello,

    Recently, we enabled SSL on a page in a sitefinity (3.7) site. We also use a generic content item (stored in the generic content module) in our templates that links to a sales policy and a privacy policy. The issue is that when we visit the SSL enabled page, these links have the port number 443 (SSL port) in them (http://www.site.com:443/Page.aspx), so when a user clicks on them from here, the links do not work. We do not want to have two content items, and the client we are working with is quite adamant that they be able to use the RadEditor linking tools without touching the HTML to make the links relative (this does fix the issue). Is there anything we can do to address this?

    Thanks

    Travis
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    10 Feb 2011
    Link to this post
    Hello Travis,

    The problem is that we pass relative urls to be rendered. Which in turn since the request is secured are also translated by the server to HTTPS requests. What you can do is to create a control which inherits from the Generic Content control and override its pretender method. Then you have to check item urls in the content to be rendered and amend them. You can find example on how to achieve the override of PreRender method here.

    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
  3. Tim
    Tim  avatar
    1 posts
    Registered:
    29 Jul 2011
    09 Aug 2011
    Link to this post
    Was this problem fixed in later versions?
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    12 Aug 2011
    Link to this post
    Hello Tim ,

    The behavior is not changed in later versions. When you view a page under SSL all links there are generated with SSL in the path, to ensure that there are no unsecured requests. If you use Sitefinity pages this will not be a problem if they do not require SSL upon requesting those pages with SSL  the request will be transferred to regular HTTP.

    Best wishes,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested 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
4 posts, 0 answered