Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit eac229ff authored by Richard Steinmetz's avatar Richard Steinmetz Committed by GitHub
Browse files

Merge pull request #4206 from nextcloud/backport/4202/stable3.3

[stable3.3] Fix view switching on creating new events
parents b7ce0140 a6e15137
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ export default {
		 * Opens the new event dialog
		 */
		newEvent() {
			this.$router.push('/new')
			this.$router.push(`/new/${this.$route.params.view}`)
		},
	},
}
+2 −2
Original line number Diff line number Diff line
@@ -104,8 +104,8 @@ const router = new Router({
			redirect: `/embed/:tokens/${getInitialView()}/now`,
		},
		{
			path: '/new',
			redirect: () => `/${getInitialView()}/now/new/${getPreferredEditorRoute()}/0/${getDefaultStartDateForNewEvent()}/${getDefaultEndDateForNewEvent()}`,
			path: '/new/:view?',
			redirect: (to) => `/${to.params.view ?? getInitialView()}/now/new/${getPreferredEditorRoute()}/0/${getDefaultStartDateForNewEvent()}/${getDefaultEndDateForNewEvent()}`,
		},
		{
			path: '/new/:allDay/:dtstart/:dtend',