Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative URLs incorrectly prepend /wp/ when running acorn optimize #13

Closed
dalepgrant opened this issue Jul 18, 2024 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@dalepgrant
Copy link

dalepgrant commented Jul 18, 2024

Version

1.0.1

What did you expect to happen?

When enabling relative URLs I expected them to be enqueued with the correct URL, e.g.
/app/themes/sage10/public/css/app.1259cf.css

What actually happens?

Scripts and styles are enqueued with /wp/ prepended, e.g.
/wp/app/themes/sage10/public/css/app.1259cf.css

Steps to reproduce

  • Set 'enabled' => true in the prettify config
  • Run wp acorn optimize
  • Note theme scripts and styles aren't loading correctly.

See roots/acorn#226 for more details.

System info

macOS 14.5 M3 chip
Lima as local env

Also same when deployed with acorn optimize as a build-after task to Ubuntu 22.04.

Both envs php8.2

Log output

No response

Please confirm this isn't a support request.

Yes

@dalepgrant dalepgrant added the bug Something isn't working label Jul 18, 2024
Log1x added a commit that referenced this issue Jul 18, 2024
@Log1x Log1x closed this as completed in 1d417f8 Jul 18, 2024
@dalepgrant
Copy link
Author

@Log1x Tested, working. Legend 💪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant