Conversation
WalkthroughThe changes in the Possibly related PRs
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
🧰 Additional context used🧬 Code Definitions (1)ghost/core/test/unit/frontend/helpers/ghost_head.test.js (6)
⏰ Context from checks skipped due to timeout of 90000ms (9)
🔇 Additional comments (1)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
ghost/core/core/frontend/helpers/ghost_head.js (1)
154-155: Great fix for subdirectory installations!This change correctly addresses the issue with stats URLs for Ghost sites hosted in subdirectories by dynamically constructing the script source URL using
urlUtils.getSubdir(). This ensures the Tinybird tracker script works properly regardless of whether the site is installed at the root or in a subdirectory.For additional robustness, you could consider using a path joining utility to handle potential edge cases with slashes:
-const src = urlUtils.getSubdir() + '/public/ghost-stats.js'; +const src = urlUtils.join(urlUtils.getSubdir(), '/public/ghost-stats.js');This would ensure proper path formation even if the subdirectory path handling changes in the future.
Also applies to: 167-167
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
ghost/core/core/frontend/helpers/ghost_head.js(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (6)
- GitHub Check: Ghost-CLI tests
- GitHub Check: Regression tests (Node 20.11.1, mysql8)
- GitHub Check: Database tests (Node 20.11.1, sqlite3)
- GitHub Check: Database tests (Node 22.13.1, mysql8)
- GitHub Check: Database tests (Node 20.11.1, mysql8)
- GitHub Check: Database tests (Node 18.12.1, mysql8)
no ref