fix(subdirectory): star-rating ratings widget assets under subpath (24.05 backport)#7663
Merged
Merged
Conversation
Backport of the star-rating half of countly-platform#420 to 24.05: - countly.views.js: prefix the ratings empty-state image with countlyGlobal.path (was root-absolute "/star-rating/...", 404s under a subdirectory deploy). - ratings.scss: make the rating-preview emoji/thumb/star background-image URLs relative (../images/...) instead of root-absolute, so they resolve under both root and subdirectory deploys. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Cookiezaurs
approved these changes
Jun 4, 2026
Copilot stopped reviewing on behalf of
ar2rsawseen due to an error
June 4, 2026 19:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Follow-up to #7661 — the star-rating half of countly-platform#420 that was added after #7661 merged (pushed to the merged branch, so it never landed; fresh PR for just that delta).
star-rating/.../countly.views.js: prefix the ratings empty-state image withcountlyGlobal.path(was root-absolute, 404s under subpath).star-rating/.../ratings.scss: rating-preview emoji/thumb/starbackground-imageURLs made relative (../images/…) instead of root-absolute, so they resolve under both root and subdirectory deploys.node --checkpasses; SCSS converted+16/-16. Compiledratings.cssrebuilt by CI.🤖 Generated with Claude Code