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

Unverified Commit da0a42a6 authored by Georg Ehrke's avatar Georg Ehrke
Browse files

Add routes to forward simple edit urls

parent 0760d4e2
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -92,6 +92,14 @@ const router = new Router({
			path: '/embed/:tokens',
			redirect: `/embed/:tokens/${getInitialView()}/now`,
		},
		{
			path: '/edit/:object',
			redirect: '/${getInitialView()}/now/edit/sidebar/:object/next'
		},
		{
			path: '/edit/:object/:recurrenceId',
			redirect: '/${getInitialView()}/now/edit/sidebar/:object/:recurrenceId'
		},
		/**
		 * This is the main route that contains the current view and viewed day
		 * It has to be last, so that other routes starting with /p/, etc. match first