Copied to clipboard

Flag this post as spam?

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


  • Daniel Bardi 927 posts 2562 karma points
    Jul 03, 2011 @ 05:33
    Daniel Bardi
    0

    SpeechBubbles are empty after redirect in BackOffice

    I attach to the /umbraco/default.aspx load event to redirect to /umbraco/umbraco.aspx so I can attach to the umbraco.aspx load event and add custom javascript.

    I've done this before, but every time, it breaks the speechbubbles  (i.e. blank .. see image)

    How can I add my custom javascript to umbraco.aspx and not break the speechbubbles..

     

     

  • Daniel Bardi 927 posts 2562 karma points
    Jul 03, 2011 @ 06:33
    Daniel Bardi
    0

    This is the code I use to redirect to /umbraco/umbraco.aspx.. it breaks the SpeechBubbles:

                    if (application.Context.CurrentHandler is _Default)

                    {

                        // default.aspx forwards to umbraco.aspx with Server.Transfer so redirect is required

                        // in order to process code below

                        var umbPath = string.Format("{0}/umbraco.aspx", GlobalSettings.Path);

                        try

                        {

                            // try "/umbraco" path

                            application.Response.Redirect(umbPath);

                        }

                        catch

                        {

                            // transfer as normal

                            application.Server.Transfer(umbPath);

                        }

                        return;

                    }

Please Sign in or register to post replies

Write your reply to:

Draft