summaryrefslogtreecommitdiffstats
path: root/lib/Controller
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-05-27 14:39:03 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-05-30 10:28:57 +0200
commit388245c9a55ad34464f125166bb07c7639701559 (patch)
treed615a16020bc35d626660b14e18c2ac78c2de7b1 /lib/Controller
parentcbcd13d3f9bef27b167624200ee2f4c13df8f3b6 (diff)
Add dedicated direct route and fix old contacts route
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib/Controller')
-rw-r--r--lib/Controller/ContactsController.php15
1 files changed, 15 insertions, 0 deletions
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);
+ }
}