Skip to content

Commit 0bbb395

Browse files
fix(vue3): preserve modal URL contract in RequestSignatureTab
Keep the external-route hotfix based on router.resolve while still generating absolute modal URLs for validation and signing flows, preserving the tested modal navigation contract. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent bcbed88 commit 0bbb395

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/components/RightSidebar/RequestSignatureTab.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,8 +711,9 @@ function validationFile() {
711711
}
712712
713713
if (props.useModal) {
714+
const absoluteUrl = generateUrl('/apps/libresign/p/validation/{uuid}', { uuid: targetUuid })
714715
const route = router.resolve({ name: 'ValidationFileExternal', params: { uuid: targetUuid } })
715-
modalSrc.value = route.href
716+
modalSrc.value = route.href || absoluteUrl
716717
return
717718
}
718719
router.push({ name: 'ValidationFile', params: { uuid: targetUuid } })
@@ -861,8 +862,9 @@ async function sign() {
861862
862863
const uuid = file.signUuid
863864
if (props.useModal) {
865+
const absoluteUrl = generateUrl('/apps/libresign/p/sign/{uuid}/pdf', { uuid })
864866
const route = router.resolve({ name: 'SignPDFExternal', params: { uuid } })
865-
modalSrc.value = route.href
867+
modalSrc.value = route.href || absoluteUrl
866868
return
867869
}
868870
signStore.setFileToSign(filesStore.getFile())

0 commit comments

Comments
 (0)