-
Notifications
You must be signed in to change notification settings - Fork 821
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
FIX: dev/build not flushing manifests if site is in a subfolder #3815
Conversation
Is this unit-testable? |
Not sure, I have no idea how you’d approach testing something like this! |
Bump :) |
On sites not in a subdir, wouldn't the |
1ddcf4a
to
8060040
Compare
8060040
to
eed7093
Compare
@dhensby Good spot, I’ve removed that redundant check now |
Ok, have you tested this manually to ensure it works as expected? |
I do find this quite a hacky solution, don't the other dev functions need this kind of fix too? |
Yep, I’ve tested both in and not in a subdirectory, with and without trailing slashes and it works as expected. It does feel hacky, but I’m just trying to fix a regression from #3677 rather than refactor anything :) |
agreed |
FIX: dev/build not flushing manifests if site is in a subfolder
For example: http://localhost/silverstripe/dev/build would result in
$requestURL
beingsilverstripe/dev/build
, butBASE_URL . '/dev/build'
would be/silverstripe/dev/build
(note leading slash).