Skip to content

fix(ui): handle asset basePath#805

Merged
perber merged 1 commit intomainfrom
fix/asset-manager-basepath
Mar 27, 2026
Merged

fix(ui): handle asset basePath#805
perber merged 1 commit intomainfrom
fix/asset-manager-basepath

Conversation

@perber
Copy link
Copy Markdown
Owner

@perber perber commented Mar 26, 2026

Use the existing base path helper for asset manager preview URLs. Keep inserted markdown unchanged so stored asset links do not gain the configured base path.

Use the existing base path helper for asset manager preview URLs.
Keep inserted markdown unchanged so stored asset links do not gain the configured base path.
Copilot AI review requested due to automatic review settings March 26, 2026 23:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes asset preview URL generation in the UI when the app is hosted under a configured router base path, while ensuring inserted Markdown asset links remain canonical and do not get persisted with the base path.

Changes:

  • Use withBasePath() when building preview/download URLs for assets in the asset manager list.
  • Keep inserted Markdown links unchanged (no base path prefix) to avoid persisting environment-specific URLs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@perber perber merged commit 2033711 into main Mar 27, 2026
9 checks passed
@perber perber deleted the fix/asset-manager-basepath branch March 27, 2026 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants