Skip to content

[stable31] fix: envelope file viewer fallback#6269

Merged
vitormattos merged 2 commits intostable31from
backport/6268/stable31
Dec 30, 2025
Merged

[stable31] fix: envelope file viewer fallback#6269
vitormattos merged 2 commits intostable31from
backport/6268/stable31

Conversation

@backportbot-libresign
Copy link
Copy Markdown

Backport of PR #6268

- Move URL generation outside conditional to avoid duplication
- Add fallback to window.open() when OCA.Viewer is unavailable
- Simplify reference from window.OCA to OCA for consistency
- Ensures PDFs can be opened directly if Viewer app fails

Signed-off-by: Vitor Mattos <[email protected]>
- Move URL generation outside conditional to avoid code duplication
- Ensures URL is generated once and reused for both viewer and fallback
- Maintains fallback to window.open() when OCA.Viewer is unavailable

Signed-off-by: Vitor Mattos <[email protected]>
@github-project-automation github-project-automation Bot moved this to 0. Needs triage in Roadmap Dec 30, 2025
@backportbot-libresign backportbot-libresign Bot added this to the Next Patch (31) milestone Dec 30, 2025
@vitormattos vitormattos merged commit 78fe95e into stable31 Dec 30, 2025
56 checks passed
@vitormattos vitormattos deleted the backport/6268/stable31 branch December 30, 2025 17:54
@github-project-automation github-project-automation Bot moved this from 0. Needs triage to 4. to release in Roadmap Dec 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant