I am working in Ubuntu and enabled user dir extention so that I can manage my files with in my home directory. This time my ubuntu box is configured on domain setup. The user name I was assigned is "MYDOMAIN\myname".
http://localhost/~mydomain\myname/drupal7.12 is a valid path to access my drupal project.
When I use this user name to access my web directory (public_html) css files are not loaded.

The generated paths for css resource files skip the back slash in the user name.
http://localhost/~mynetworkmyname/drupal7.12/rest/of/path/to/file

However other resources like js/images are loaded with a little difference in URL.
http://localhost/~mynetwork%5Cmyname/drupal7.12/rest/of/path/to/file

Need to fix that for CSS file.

Can anyone help me so that I can focus to fix it.

Comments

shoaib.nawaz’s picture

Title: Wrong CSS path in case when there is back slash "\" in the URL » There is issue with @import url() construct

I investigated more on it. Drupal is generating the right output of paths.

The issue is on the client side.
Chrome always converts backslash to forward slash and results a Not Found page. This is the case for js and images or may be with css by linking method.

Firefox treats it well in address bar atleast to load a proper page content.
Firefox also loads js and images or may be css with linking method.

But the common reason is when @import url() is intended to work and browser's console shows not found error message for each css path. And each css path reported without '\'.

Encoding the '\' to %5C or to escape the \ with another \ is not a common solution.

Firefox works with escaped '\' i.e. \\
@import url("http://localhost/~mynetwork\\myname/drupal7.12/rest/of/path/to/file");

While Chorme works with encoded '\' i.e. %5C
@import url("http://localhost/~mynetwork%5Cmyname/drupal7.12/rest/of/path/to/file");

bleen’s picture

Category: bug » support
Status: Needs review » Active

This sounds like it is a support request, not a bug. Also, "needs review" implies there is a patch for someone to look at...

Version: 7.12 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.