Skip to content

Remove extra / from locale paths - #48017

Merged
maddiedierker merged 1 commit into
stagingfrom
fix-locale-webpack-path
Sep 8, 2022
Merged

Remove extra / from locale paths#48017
maddiedierker merged 1 commit into
stagingfrom
fix-locale-webpack-path

Conversation

@maddiedierker

Copy link
Copy Markdown
Contributor

After merging #47093 (the webpack 5 upgrade), many UI/Eyes tests are failing in the DTT. This is a fix forward.

All the tests I investigated had errors like this:

Screen Shot 2022-09-08 at 1 56 18 PM

where requests for locale files were 404ing. The URL for those locale files had an extra /:

# Request that 404s
https://test-studio.code.org/assets/js/en_us//common_localewpe534efec894fc8ed2bc8.js

Attempting to load that URL failed, but removing the extra / successfully loaded the minified locale file. I updated the rule for locale files in our Gruntfile and tested locally that the URL was updated as expected using the "Using minified js locally" and "Using rails asset pipeline locally" documentation in build.md.

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.

1 participant