diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-12-11 17:35:18 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-12-11 18:12:49 +0300 |
commit | 6d7fd245a57d81746ac0f0950b4a13ca9d483ca1 (patch) | |
tree | 7da96f74f116842249e24be9bb31b971e8fdd947 /lib/Controller | |
parent | 8d3be14cbcf1815faf3bea4daa7cb256c7b660d1 (diff) |
Fix generating the redirect url
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/Controller')
-rw-r--r-- | lib/Controller/ContactsController.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Controller/ContactsController.php b/lib/Controller/ContactsController.php index 24361096..0404c3ac 100644 --- a/lib/Controller/ContactsController.php +++ b/lib/Controller/ContactsController.php @@ -56,7 +56,9 @@ class ContactsController extends Controller { * @param string $uuid */ public function direct(string $contact): RedirectResponse { - $url = $this->urlGenerator->getAbsoluteURL('/apps/contacts/' . $this->l10n->t('All contacts') . '/' . $contact); + $url = $this->urlGenerator->getAbsoluteURL( + $this->urlGenerator->linkToRoute('contacts.page.index') . $this->l10n->t('All contacts') . '/' . $contact + ); return new RedirectResponse($url); } } |