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

Unverified Commit 86d6ae46 authored by Georg Ehrke's avatar Georg Ehrke Committed by GitHub
Browse files

Merge pull request #2482 from nextcloud/backport/2479/stable2.0

[stable2.0] Fix route for public link emails
parents 7e36074e 8e088bd1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -209,7 +209,7 @@ class EmailController extends Controller {
	 * @return string
	 */
	private function getURLFromToken(string $token):string {
		return $this->urlGenerator->linkToRouteAbsolute('calendar.view.public_index_with_branding', [
		return $this->urlGenerator->linkToRouteAbsolute('calendar.publicView.public_index_with_branding', [
			'token' => $token,
		]);
	}
+3 −3
Original line number Diff line number Diff line
@@ -165,7 +165,7 @@ class EmailControllerTest extends TestCase {

		$this->urlGenerator->expects($this->at(0))
			->method('linkToRouteAbsolute')
			->with('calendar.view.public_index_with_branding', [
			->with('calendar.publicView.public_index_with_branding', [
				'token' => 'token123'
			])
			->willReturn('http://publicURL123');
@@ -271,7 +271,7 @@ class EmailControllerTest extends TestCase {

		$this->urlGenerator->expects($this->at(0))
			->method('linkToRouteAbsolute')
			->with('calendar.view.public_index_with_branding', [
			->with('calendar.publicView.public_index_with_branding', [
				'token' => 'token123'
			])
			->willReturn('http://publicURL123');