1

Resolved

Problem when using url path and script or style bundles

description

I tried using this middleware (with culture in url path) in conjonction with asp.net MVC bundling.

The problem is that every request processed by the OWIN pipeline that does not contain a culture in its url path is redirected to contain such a culture. This includes bundles retrieving... Hence, my application is not able to load its javascript or css ressources anymore.

I don't want to use the DisableRedirect() option because I found it usefull to redirect url to reflect current culture when it is not already present in the url for every view in my application.

How can I get both to work together?

Thanks in advance.

Regards.

comments

frankabbruzzese wrote Jul 7 at 10:00 PM

It should be possible to solve by moving the place where the module is added, to be after the bundles calls are accepted.
Anyway, we will add the option to ignore some paths.

frankabbruzzese wrote Jul 7 at 10:59 PM

Please download the new fixed sources, to see if the issue disappears. We added a DisabledPaths method in the fluent interface to exclude some paths form the ones processed by the module (See the example in the sources).
As soon as you confirm your issues has been solved we'll publish binaries, on both Codeplex and Nuget.

Asshiah wrote Jul 8 at 11:28 AM

It is fixed.

Thank you