Skip to content

Commit

Permalink
fix: validation url
Browse files Browse the repository at this point in the history
The method was renamed and the route also need to be renamed.

Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos authored and backportbot-libresign[bot] committed Jan 16, 2025
1 parent 25883ec commit 88e3299
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 @@ -509,7 +509,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 @@ -265,7 +265,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 88e3299

Please sign in to comment.