none
Bookmarked page is not loading properly RRS feed

  • Question

  • We have a web application created using HTML, jquery, kendo UI and angular. We have deployed it on azure and Azure AD authentication is implemented.

    This functionality is working well till the user is opening the application by pasting the url in the browser. When he bookmarked it and open the page from this bookmark then we are facing two issues in random sequence-

    1. It is not loading any of the js files and showing ‘Uncaught TypeError: Cannot read property 'jQuery' of undefined’ on the console.
    2. On the home page, we are making a call to /.auth/me where if the user is already login to azure then it is getting his UserID and UserName. And if the user is not logged in then it is redirecting it to the O365 login page. It is not taking his credentials, he is already login and not even redirecting him to the login page. Due to this the application is showing the authentication issue in the console and getting stop.

    When we hit enter or F5 it automatically resolves all the above issues and page gets loaded successfully.

    Thanks in Advance

    • Moved by CoolDadTx Monday, March 25, 2019 2:22 PM ASP.NET related
    Monday, March 25, 2019 10:26 AM

All replies

  • How are you setting up for jQuery e.g. using an include as the first include before all other includes then using this to start things up?

    $(document).ready(function () {
    
    
    });
    What happens when not under the debugger using say Chrome developer tools setup to break on errors?


    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    StackOverFlow
    profile for Karen Payne on Stack Exchange

    Monday, March 25, 2019 11:07 AM
  • Please post questions related to web development in the ASP.NET forums.

    Michael Taylor http://www.michaeltaylorp3.net

    Monday, March 25, 2019 2:22 PM
  • Hello,

    We are not clear with your response.. 

    Can you please explain in detail that how bookmark web application page does not load fully.

    Tuesday, March 26, 2019 5:53 AM