From b0b5eee5bf6efeac9e12fc4c50ff8703c6bb1d75 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Sat, 14 Sep 2024 22:14:46 -0300 Subject: [PATCH] fix: open notification as internal url Signed-off-by: Vitor Mattos --- lib/Listener/NotificationListener.php | 2 +- tests/integration/features/bootstrap/FeatureContext.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Listener/NotificationListener.php b/lib/Listener/NotificationListener.php index bf82f393c3..2f680bbe7b 100644 --- a/lib/Listener/NotificationListener.php +++ b/lib/Listener/NotificationListener.php @@ -130,7 +130,7 @@ protected function getFileParameter(SignRequest $signRequest, FileEntity $libreS 'id' => (string)$libreSignFile->getNodeId(), 'name' => $libreSignFile->getName(), 'path' => $libreSignFile->getName(), - 'link' => $this->url->linkToRouteAbsolute('libresign.page.sign', ['uuid' => $signRequest->getUuid()]), + 'link' => $this->url->linkToRouteAbsolute('libresign.page.signFPath', ['uuid' => $signRequest->getUuid(), 'path' => 'pdf']), ]; } diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php index cc223ce8a4..03e64bbf53 100644 --- a/tests/integration/features/bootstrap/FeatureContext.php +++ b/tests/integration/features/bootstrap/FeatureContext.php @@ -278,7 +278,7 @@ function ($notification) { $found = current($found); - preg_match('/p\/sign\/(?[\w-]+)$/', $found['link'], $matches); + preg_match('/f\/sign\/(?[\w-]+)\/pdf$/', $found['link'], $matches); Assert::assertArrayHasKey('uuid', $matches, 'UUID not found on email'); $this->fields['SIGN_UUID'] = $matches['uuid']; }