Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • syn-rg 282 posts 425 karma points
    Jul 04, 2012 @ 06:25
    syn-rg
    0

    "Preview Mode - click to end" not working in 4.7.1

    I'm trying to find a solution to the "Preview Mode - click to end" problem. Clicking on the link causes and error:

    Server Error in '/' Application.

    The resource cannot be found.

    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. 

    Requested URL: /umbraco/endPreview.aspx

     

    The URL doesn't redirect to live site page: www.website.com/umbraco/endPreview.aspx?redir=%2f1133.aspx

    This is the code for the link in the umbracoSettings.config file:

    <PreviewBadge><![CDATA[<a id="umbracoPreviewBadge" style="position: absolute; top: 0; right: 0; border: 0; width: 149px; height: 149px; background: url('{1}/preview/previewModeBadge.png') no-repeat;" href="{0}/endPreview.aspx?redir={2}"><span style="display:none;">In Preview Mode - click to end</span></a>]]></PreviewBadge>

     

    Any help on this would be greatly appreciated.

    Cheers, JV

  • syn-rg 282 posts 425 karma points
    Jul 05, 2012 @ 08:17
    syn-rg
    0

    I couldn't find a fix. So instead I changed the link to close the window:

    href="JavaScript:window.close()"
    <PreviewBadge><![CDATA[<a id="umbracoPreviewBadge" style="position: absolute; top: 0; right: 0; border: 0; width: 149px; height: 149px; background: url('{1}/preview/previewModeBadge.png') no-repeat;" href="JavaScript:window.close()"><span style="display:none;">In Preview Mode - click to end</span></a>]]></PreviewBadge>
Please Sign in or register to post replies

Write your reply to:

Draft