Skip to content

Commit

Permalink
Merge pull request #4363 from LibreSign/backport/4360/stable29
Browse files Browse the repository at this point in the history
[stable29] fix: validation url
  • Loading branch information
vitormattos authored Jan 16, 2025
2 parents a35c9e4 + bbd52db commit e506b71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Controller/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ public function validation(): TemplateResponse {
#[FrontpageRoute(verb: 'GET', url: '/validation/{uuid}')]
public function validationFileWithShortUrl(): RedirectResponse {
$this->throwIfValidationPageNotAccessible();
return new RedirectResponse($this->url->linkToRoute('libresign.page.validationFile', ['uuid' => $this->request->getParam('uuid')]));
return new RedirectResponse($this->url->linkToRoute('libresign.page.validationFilePublic', ['uuid' => $this->request->getParam('uuid')]));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Service/IdentifyMethod/AbstractIdentifyMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ protected function throwIfAlreadySigned(): void {
'action' => JSActions::ACTION_REDIRECT,
'errors' => [$this->identifyService->getL10n()->t('File already signed.')],
'redirect' => $this->identifyService->getUrlGenerator()->linkToRoute(
'libresign.page.validationFile',
'libresign.page.validationFilePublic',
['uuid' => $signRequest->getUuid()]
),
]));
Expand Down

0 comments on commit e506b71

Please sign in to comment.