Skip to content

Default publicPath should be '/' #188

Closed

Description

@arbrandes

With publicPath: 'auto', webpack generates relative asset URLs. When the dev server or production serve command returns index.html for SPA sub-paths (e.g. /authn/login), the browser resolves those relative URLs against the sub-path instead of the root, causing assets to 404 or be served as HTML.

(I ran into this while trying to use the apps in frontend-template-site after openedx/frontend-app-authn#1633 and openedx/frontend-app-learner-dashboard#797 merged.)

The fix is to default publicPath to '/' instead of 'auto'.

PR: #187

Activity

  1. moved this to In Review in frontend-baseon Mar 13, 2026
  2. self-assigned this
    on Mar 13, 2026
  3. added theissue type on Mar 13, 2026
  4. changed the title [-]fix: default publicPath to '/' instead of 'auto'[/-] [+]default publicPath to '/' instead of 'auto'[/+] on Mar 13, 2026
  5. changed the title [-]default publicPath to '/' instead of 'auto'[/-] [+]Default publicPath should be '/'[/+] on Mar 13, 2026
  6. moved this from In Review to Done in frontend-baseon Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions