Skip to content

Commit

Permalink
fix: open notification as internal url
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos authored and backportbot-libresign[bot] committed Sep 16, 2024
1 parent 39a27fa commit b0b5eee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Listener/NotificationListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']),
];
}

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ function ($notification) {
$found = current($found);


preg_match('/p\/sign\/(?<uuid>[\w-]+)$/', $found['link'], $matches);
preg_match('/f\/sign\/(?<uuid>[\w-]+)\/pdf$/', $found['link'], $matches);
Assert::assertArrayHasKey('uuid', $matches, 'UUID not found on email');
$this->fields['SIGN_UUID'] = $matches['uuid'];
}
Expand Down

0 comments on commit b0b5eee

Please sign in to comment.