Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2020-11-27 14:45:15 +0300
committerGitHub <noreply@github.com>2020-11-27 14:45:15 +0300
commit933298bac11c4ce0e679bd6d97e1135804c84278 (patch)
treeffc481240be7440765419a7a1817cf9b87df2031 /lib/Controller
parent14ed3f3bf7c15b44ea460abfd4be2ef4bd2a547b (diff)
parent202abb506670339dff11eeb115a391c3784ec46c (diff)
Merge pull request #4128 from nextcloud/fix/mailto_route
Fix mailto route
Diffstat (limited to 'lib/Controller')
-rw-r--r--lib/Controller/PageController.php17
1 files changed, 12 insertions, 5 deletions
diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php
index ae7141f17..4577bc983 100644
--- a/lib/Controller/PageController.php
+++ b/lib/Controller/PageController.php
@@ -231,10 +231,17 @@ class PageController extends Controller {
function (&$value, $key) {
$value = "$key=" . urlencode($value);
});
-
- $hashParams = '#mailto?' . implode('&', $params);
-
- $baseUrl = $this->urlGenerator->linkToRoute("mail.page.index");
- return new RedirectResponse($baseUrl . $hashParams);
+ $name = '?' . implode('&', $params);
+ $baseUrl = $this->urlGenerator->linkToRoute('mail.page.mailto');
+ return new RedirectResponse($baseUrl . $name);
+ }
+ /**
+ * @NoAdminRequired
+ * @NoCSRFRequired
+ *
+ * @return TemplateResponse
+ */
+ public function mailto(): TemplateResponse {
+ return $this->index();
}
}