-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Loading relative dependencies with HTTP requests broken on 1.9.7 #152
Comments
It seems that other code parts called in this place are ok with relative paths -- the |
There's another discussion about a similar thing here: #147 (comment) By the time it reaches that line of code that you mention, the path must be an absolute URI. For relative paths, the |
I see. The problem is that the extension of our custom generated JS files is included in config in |
That will be one way to make it work for sure. If you want to create a PR to allow for non-absolute paths for that specific line i can run some tests to see if it can be allowed. |
With the 1.9.7 upgrade it stopped to be possible to load local relative URIs over HTTP requests. We use this for generating JS code via razor (something like this) -- sometimes useful, although the generated JS must be immutable to make it's caching meaningful :). We could resolve it by putting absolute URIs into the
RequiresJs
calls but this doesn't feel quite right since with static assets it works.As for the origin of this issue -- at https://github.com/Shazwazza/ClientDependency/blob/master/ClientDependency.Core/CompositeFiles/Providers/BaseCompositeFileProcessingProvider.cs#L217 there's a call to
uri.PathAndQuery
which throws for relative URIs. Would it make sense to elaborate on theuri.PathAndQuery
part (make it a variable and add some if's) to enable passing local paths? If yes, I can come up with a pull request.The text was updated successfully, but these errors were encountered: