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

Forums / Designing with Sitefinity / External Page - Admin Redirects

External Page - Admin Redirects

6 posts, 0 answered
  1. Jason Green
    Jason Green avatar
    53 posts
    Registered:
    18 Sep 2009
    17 Dec 2009
    Link to this post
    I added an external page to my site, but now when I try to edit the properties of the page in the sitefinity admin, the screen loads and immediately redirects to the external page URL!

    My external page is a link to another website.  

    How do I keep it from doing that in the admin so I can edit the value, and futher change the permissions or properties, and also set it to open in a new browser window?
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    17 Dec 2009
    Link to this post
    Hi Jason Green,

    Thank you for using our services.

    This is not the default behavior of External Pages in Sitefinity. You can see attached screen cast for reference on how external pages do work in Sitefinity. Do you have any customizations over the cms - custom http modules, etc? You can edit the ItemDataBound methods of the navigation controls to check whether a page is external and if so add target setting to open it in new window. For example the ~/Sitefinity/UserControls/Navigation35/SiteMenu.ascx.cs contains code for the SiteMenu control. Add this to the ItemDataBound event handler:
    public void RadMenu1_ItemDataBound(object sender, RadMenuEventArgs e)
    {
        CmsSiteMapNode siteMapNode = e.Item.DataItem as CmsSiteMapNode;
        if (siteMapNode.CmsPage.PageType == CmsPageType.External)
        {
            e.Item.Target = "_blank";
        }


    Greetings,
    Radoslav Georgiev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Jason Green
    Jason Green avatar
    53 posts
    Registered:
    18 Sep 2009
    05 Jan 2010
    Link to this post
    I have an customInternalPage implemented that adds a few properties and does some work, and Ihave some custom user controls - but nothing that should affect the actual loadprocess or the navigation.  The only real change we have there is using theadvanced url rewriter objects from Sitefinity.  Otherwise nothing special.
     
    I notice twospecific issues with this.
     
    1) I can't edit thelink anymore in the Sitefinity admin as it redirects me out of admin to the URLwhen I try to load the page to edit.  I see the page loads, then it get'sredirect (like a client side redirect).
     
    2) On the publicscreen it is not going to a new browser or tab.
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    05 Jan 2010
    Link to this post
    Hi Jason Green,

    Thank you for getting back to me.

    I am almost positive that this behavior is coming either from any of the controls which you have on your external pages (or scripts there) or the custom internal page. As it would be really hard to point what the cause of this might be since I have not experienced such behavior before I would really need to look at your custom internal page implementation and the external pages themselves. I see that you have opened a support ticket. May be you can send us a striped down version of your project where the behavior is reproducible.

    Thank you very much for your cooperation in advance. We should also share our findings to the community if you do not mind.

    Best wishes,
    Radoslav Georgiev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Jason Green
    Jason Green avatar
    53 posts
    Registered:
    18 Sep 2009
    09 Mar 2010
    Link to this post
    The actual problem on this is that the link I was trying to add (http://www.nytimes.com) is running some client side scripts to redirect itself out of being framed.  Everytime sitefinity loaded the content to display in the editor (why it does that on external links is beyond me) it was getting redirected.
  6. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    09 Mar 2010
    Link to this post
    Hello Jason Green,

    The page previewer in the Pages section is an IFRAME. There is a simple way to check whether your page is shown in an IFRAME instead of a browser window and do the same as this page is doing. If you take a look at the ~/Sitefinity/login.aspx page you will find a sample of this script.

    Greetings,
    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, 0 answered