Skip to content

fix(subdirectory): prefix-safe data-manager dropzone upload icon (24.05 backport)#7671

Merged
ar2rsawseen merged 1 commit into
release.24.05from
fix/subpath-data-manager-upload-icon-24.05
Jun 5, 2026
Merged

fix(subdirectory): prefix-safe data-manager dropzone upload icon (24.05 backport)#7671
ar2rsawseen merged 1 commit into
release.24.05from
fix/subpath-data-manager-upload-icon-24.05

Conversation

@ar2rsawseen
Copy link
Copy Markdown
Member

Summary

Backport of the applicable part of Countly/countly-platform#428 to release.24.05. Of the 3 plugins #428 fixes, only data-manager exists in this repo (ai-assistants / config-transfer are enterprise-only).

The data-manager dropzone filename icon used content: url('/data-manager/images/upload-icon.svg') (host-root-absolute), which 404s on a subdirectory deploy (e.g. /countly).

Fix

  • main.scss: relative url("../images/data-manager/upload-icon.svg").
  • Moved images/upload-icon.svgimages/data-manager/upload-icon.svg so the relative path resolves in both dev (/data-manager/stylesheets//data-manager/images/data-manager/…) and prod (/stylesheets/plugins.min.css/images/data-manager/…). Referenced only by this scss rule.

0 absolute url("/…") remain; compiled CSS rebuilt by CI.

🤖 Generated with Claude Code

Backport of the data-manager part of Countly/countly-platform#428 to
release.24.05 (ai-assistants/config-transfer are enterprise-only, n/a).

Dropzone filename icon used host-root-absolute
content: url('/data-manager/images/upload-icon.svg'), which 404s on a
subdirectory deploy. Switch to relative
url("../images/data-manager/upload-icon.svg") and move the asset
images/upload-icon.svg -> images/data-manager/upload-icon.svg so it
resolves in both dev and prod layouts.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 5, 2026 12:41
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 backports a fix to the data-manager plugin so the Dropzone upload filename icon renders correctly when Countly is deployed under a subdirectory (e.g. /countly) by removing a host-root-absolute asset URL and switching to a prefix-safe relative asset path.

Changes:

  • Updated the Dropzone filename pseudo-element icon to use a relative url(..) instead of url('/...').
  • Added the SVG under images/data-manager/ so the relative reference resolves in both plugin-scoped dev assets and bundled production CSS.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
plugins/data-manager/frontend/public/stylesheets/main.scss Replaces host-root-absolute icon URL with a relative path to be subdirectory-safe.
plugins/data-manager/frontend/public/images/data-manager/upload-icon.svg Adds the upload icon asset at the new location referenced by the SCSS.

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

@ar2rsawseen ar2rsawseen merged commit f52e66e into release.24.05 Jun 5, 2026
6 of 8 checks passed
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.

3 participants