Forum Discussion

googlejw's avatar
googlejw
Copper Contributor
May 09, 2023

https://outlook.office.com/calendar/0/deeplink/compose - fails to load and redirect

As per the Subject, https://outlook.office.com/calendar/0/deeplink/compose no longer loads/redirects and throws two console errors:

Of particular note:

caught (in promise) TypeError: Cannot read properties of undefined (reading 'options')
at compose:2:282636
at compose:2:283778
at compose:2:283782
at compose:2:283822

Additionally:

The resource <URL> was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.

 
The page is stuck in a "loading" state where the mail icon animation repeats infinitely. Passing parameters that worked prior (for actual deep links) does not fix the issue.

Strangely https://outlook.live.com/calendar/0/deeplink/compose  is still working.

5 Replies

  • googlejw's avatar
    googlejw
    Copper Contributor

    Thanks snapper88 for adding the Github link. I can confirm that changing the url structure as follows fixes the issue for me:

    Before: https://outlook.office.com/calendar/0/deeplink/compose?path=%252Fcalendar%252Faction%252Fcompose&rru=addevent&startdt=2023-05-08T03:30:00.000Z&enddt=2023-05-08T04:00:00.000Z

    After: https://outlook.office.com/calendar/action/compose?rru=addevent&startdt=2023-05-08T03:30:00.000Z&enddt=2023-05-08T04:00:00.000Z

     

    • jekuer's avatar
      jekuer
      Copper Contributor
      googlejw, thanks for confirming.
      Would be great to get some kind of official feedback to, so we can be sure this is the way to go in the future.
      • jekuer's avatar
        jekuer
        Copper Contributor

        Observation: "action" scheme is only working on desktop. For the mobile view (not the app), it breaks with a black screen and a lot of JavaScript errors.

  • MartinK1's avatar
    MartinK1
    Copper Contributor

    I can confirm I'm having the same issue.

    Edit: Thank you snapper88 for referring to the discussion on github! Following that I could get it to work replacing the word deeplink with "action" in the url.

    Don't know if this is meant to stay this way or why it was changed in the first place. I couldn't find any statement by Microsoft on this.

  • snapper88's avatar
    snapper88
    Copper Contributor

    Confirming that I have this issue as well and see the same console errors.
    Discussion on github: https://github.com/InteractionDesignFoundation/add-event-to-calendar-docs/discussions/47#discussion-5173442

Resources