Skip to content

fix(subdirectory): star-rating ratings widget assets under subpath#7662

Merged
ar2rsawseen merged 1 commit into
masterfrom
fix/subpath-star-rating-assets
Jun 4, 2026
Merged

fix(subdirectory): star-rating ratings widget assets under subpath#7662
ar2rsawseen merged 1 commit into
masterfrom
fix/subpath-star-rating-assets

Conversation

@ar2rsawseen

Copy link
Copy Markdown
Member

Summary

Follow-up to #7660 — the two additional changes that were added to countly-platform#420 after #7660 had already merged. (They were pushed to the #7660 branch post-merge, so they never landed; this is a fresh PR for just that delta.)

  • star-rating/.../countly.views.js: the ratings empty-state image used a root-absolute path ("/star-rating/images/star-rating/ratings-empty.svg"), which 404s under a subdirectory deploy. Prefix with countlyGlobal.path (safe — JS string, not a Vue template expression).
  • star-rating/.../ratings.scss: the rating-preview emoji/thumb/star background-image URLs were root-absolute (url("/star-rating/images/…")); make them relative (url("../images/…")) so they resolve from the served /<subdir>/star-rating/stylesheets/ratings.css under both root and subdirectory deploys.

node --check passes on countly.views.js; SCSS converted +16/-16. Compiled ratings.css / minified bundles are rebuilt by CI.

🤖 Generated with Claude Code

Two more subdirectory-deploy fixes added to countly-platform#420:

- countly.views.js: the ratings empty-state image used a root-absolute
  path ("/star-rating/images/star-rating/ratings-empty.svg"), which 404s
  under a subdirectory deploy. Prefix it with countlyGlobal.path (safe —
  this is a JS string, not a Vue template expression).
- ratings.scss: the rating-preview emoji/thumb/star background-image URLs
  used root-absolute paths (url("/star-rating/images/...")); make them
  relative (url("../images/...")) so they resolve correctly from the
  served /<subdir>/star-rating/stylesheets/ratings.css under both root
  and subdirectory deploys.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 4, 2026 18:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@ar2rsawseen ar2rsawseen merged commit 1a4264c into master Jun 4, 2026
8 of 10 checks passed
Copilot stopped reviewing on behalf of ar2rsawseen due to an error June 4, 2026 19:30
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