Skip to content

Conversation

@erseco
Copy link

@erseco erseco commented Jan 16, 2026

No description provided.

erseco and others added 30 commits January 8, 2026 20:37
…able-version-refactor

Integrates user theme management changes (CSS/JS handling for ELPX-imported themes)
with static mode refactoring (subdirectory deployment support).

Key changes merged:
- User theme CSS/JS inline loading for preview
- Static mode path handling for blob URL contexts
- ResourceFetcher user theme methods (setUserThemeFiles, getUserTheme, getUserThemeAsync)
- Static mode bundle URL generation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
… into release/3.1-embedable-version-refactor
… into release/3.1-embedable-version-refactor
   Resolved conflicts:
   - public/app/app.js: Combined DataProvider/adapters init with registerPreviewServiceWorker
   - test/e2e/playwright/specs/preview-page-updates.spec.ts: Combined imports
   - Deleted WebsitePreviewExporter.ts/.spec.ts (replaced by Service Worker approach)
@github-actions
Copy link

PR Preview Action v1.8.0

QR code for preview link

🚀 View preview at
https://ateeducacion.github.io/exelearning/pr-preview/pr-19/

Built to branch gh-pages at 2026-01-16 14:50 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c522d20c44

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +90 to +94
const safePath = path.normalize(pathname).replace(/^(\.\.[/\\])+/, '');
const filePath = path.join(staticDir, safePath);

// Ensure file is within static directory
if (!filePath.startsWith(staticDir)) {

Choose a reason for hiding this comment

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

P1 Badge Strip leading slash before joining static path

The static server normalizes pathname but keeps the leading /, so path.join(staticDir, safePath) discards staticDir and yields an абсолют path like /index.html. That makes filePath.startsWith(staticDir) fail for every normal browser request (/, /index.html, /assets/...), returning 403 and preventing the Electron window from loading any static content. This breaks all static-mode launches that hit http://127.0.0.1:${STATIC_PORT}/.

Useful? React with 👍 / 👎.

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.

2 participants