Repository navigation
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review of the diff
Change:
/MaxKB.gif→./MaxKB.gifIssues / Concerns
Semantic change in path resolution (likely a regression risk)
/MaxKB.gifis an absolute path resolved from the site root (e.g.,https://host/MaxKB.gif)../MaxKB.gifis relative to the current route URL, not the app's base. In SPA/Vue Router setups (especially with history mode and nested routes), this can resolve to incorrect URLs such as/some/nested/route/MaxKB.gif, causing 404s.import.meta.env.BASE_URL + 'MaxKB.gif'or a static asset import (import MaxKBIcon from '@/assets/MaxKB.gif').No leading slash vs. Vite/base-path handling
BASE_URL. Hardcoding./bypasses base-path configuration and will break if the app is deployed under a subpath (e.g.,/maxkb/). Prefer::src="previewImages.float_icon || defaultIcon".Hardcoded fallback logic in template
Accessibility
<img>uses emptyalt="". Since it's a UI icon (not decorative in the strict sense — it likely conveys meaning), consideralt="MaxKB"or mark itrole="presentation"/aria-hidden="true"explicitly if truly decorative.Minor: filename casing
MaxKB.gifmixes case; confirm the actual file is capitalized exactly this way on case-sensitive servers (Linux), otherwise it works locally (Windows/macOS) but fails in production.Recommendation
Revert to
/MaxKB.gifor, preferably, switch to a base-URL-aware reference or a bundled asset import to make the path robust across environments.