From 388245c9a55ad34464f125166bb07c7639701559 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Thu, 27 May 2021 14:39:03 +0200 Subject: Add dedicated direct route and fix old contacts route MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- lib/Controller/ContactsController.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'lib/Controller') diff --git a/lib/Controller/ContactsController.php b/lib/Controller/ContactsController.php index 0404c3ac..061bed31 100644 --- a/lib/Controller/ContactsController.php +++ b/lib/Controller/ContactsController.php @@ -61,4 +61,19 @@ class ContactsController extends Controller { ); return new RedirectResponse($url); } + + + /** + * @NoAdminRequired + * @NoCSRFRequired + * + * Open and find direct circle + * @param string $uuid + */ + public function directCircle(string $singleId): RedirectResponse { + $url = $this->urlGenerator->getAbsoluteURL( + $this->urlGenerator->linkToRoute('contacts.page.index') . 'circle/' . $singleId + ); + return new RedirectResponse($url); + } } -- cgit v1.2.3