Fix redirect in add to microsoft365 calendar option #835
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Descripción
Se cambió la estructura de la url para crear eventos con microsoft365, ya que Microsoft está enrutando de manera diferente en mobile, agregue una solución temporal, mientras Microsoft soluciona eso.
Se agregó en el archivo
add-to-calendar.js
la validación si es mobile para cambiar la url de redireccionamiento para crear un evento.Problema solucionado
Se le da solución al issue Error add to calendar option with microsoft 365 option
Tomo como referencia una solución propuesta en el siguiente repositorio add-to-calendar-button
Cambios propuestos
"outlook" == t ? "outlook.live.com" : "outlook.office.com", a += isAndroid() || isiOS() ? "/calendar/0/deeplink/compose?path=%2Fcalendar%2Faction%2Fcompose&rru=addevent" : "/calendar/action/compose?rru=addevent"
Comprobación de cambios