Skip to content

Commit

Permalink
fix(outlook): prevents path from being encoded (#115)
Browse files Browse the repository at this point in the history
Prevents path query string param from being URL-encoded.
  • Loading branch information
jshor authored Sep 28, 2020
1 parent 7276806 commit f588947
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/OutlookCalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export default class OutlookCalendar extends CalendarBase {
}

const params = {
path: '/calendar/action/compose',
rru: 'addevent',
startdt: formatTimestampString(this.start, timestampFormat),
enddt: formatTimestampString(this.end, timestampFormat),
Expand All @@ -62,6 +61,6 @@ export default class OutlookCalendar extends CalendarBase {
const baseUrl = URL.OUTLOOK
const queryString = toQueryString(params)

return `${baseUrl}?${queryString}`
return `${baseUrl}?path=/calendar/action/compose&${queryString}`
}
}

0 comments on commit f588947

Please sign in to comment.