{"action":"created","issue":{"url":"https://api.github.com/repos/OddOneOut/bwp-minify/issues/64","repository_url":"https://api.github.com/repos/OddOneOut/bwp-minify","labels_url":"https://api.github.com/repos/OddOneOut/bwp-minify/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/OddOneOut/bwp-minify/issues/64/comments","events_url":"https://api.github.com/repos/OddOneOut/bwp-minify/issues/64/events","html_url":"https://github.com/OddOneOut/bwp-minify/issues/64","id":153839340,"number":64,"title":"Incorrect relative paths in CSS when using symlinks","user":{"login":"AlanWarren","id":294606,"avatar_url":"https://avatars.githubusercontent.com/u/294606?v=3","gravatar_id":"","url":"https://api.github.com/users/AlanWarren","html_url":"https://github.com/AlanWarren","followers_url":"https://api.github.com/users/AlanWarren/followers","following_url":"https://api.github.com/users/AlanWarren/following{/other_user}","gists_url":"https://api.github.com/users/AlanWarren/gists{/gist_id}","starred_url":"https://api.github.com/users/AlanWarren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlanWarren/subscriptions","organizations_url":"https://api.github.com/users/AlanWarren/orgs","repos_url":"https://api.github.com/users/AlanWarren/repos","events_url":"https://api.github.com/users/AlanWarren/events{/privacy}","received_events_url":"https://api.github.com/users/AlanWarren/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OddOneOut/bwp-minify/labels/pending-review","name":"pending-review","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"kminh","id":6402124,"avatar_url":"https://avatars.githubusercontent.com/u/6402124?v=3","gravatar_id":"","url":"https://api.github.com/users/kminh","html_url":"https://github.com/kminh","followers_url":"https://api.github.com/users/kminh/followers","following_url":"https://api.github.com/users/kminh/following{/other_user}","gists_url":"https://api.github.com/users/kminh/gists{/gist_id}","starred_url":"https://api.github.com/users/kminh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kminh/subscriptions","organizations_url":"https://api.github.com/users/kminh/orgs","repos_url":"https://api.github.com/users/kminh/repos","events_url":"https://api.github.com/users/kminh/events{/privacy}","received_events_url":"https://api.github.com/users/kminh/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-05-09T18:29:50Z","updated_at":"2016-05-12T15:02:19Z","closed_at":null,"body":"Hello,\r\nI am currently configuring a wordpress site that uses symlinks for the uploads folder and it's theme. \r\n\r\nWith BWP minify's default configuration, I get an HTTP 400 error due to these folders being symlinks. To solve this, I've edited $min_symlinks inside config.php according to the documentation.  This is where something unexpected happens.  The CSS contained within symlink directories now loads (HTTP 200), but the other CSS contained in normal directories now returns HTTP 400. Essentially, it's the reverse situation. \r\n\r\nFor example, my site will enqueue css from \"uploads\", \"plugins\", \"wp-include\" and \"themes\" directories. With \"uploads\" and \"themes\" added to config.php as symlinks, I'm now getting HTTP 400 for any css contained within \"plugins\" and \"wp-include\", which are regular directories. \r\n\r\nTo solve this, I have to add entries for all directories we enqueue css from to $min_symlinks array, even though they're not symlinks.  This results in HTTP 200 for all CSS resources, but now another issue is manifest.  \r\n\r\nHere's an example that outlines the issue. \r\n\r\nWe are using the visual composer plugin, which loads fontawesome webfonts.  Paths to .eot, .woff, and .svg files use relative paths within their CSS. For example, the file located at -  plugins/js_composer/assets/lib/bower/font-awesome/css/font-awesome.min.css references fonts like so:\r\n\r\n@font-tace{ \r\nfont-family:FontAwesome;\r\nsrc:url(../fonts/fontawesome-webfont.eot)\r\n}\r\n\r\nAfter BWP Minify, using the config.php outlined above with symlinks specified, relative paths are incorrectly output like so: \r\n\r\n@font-face{\r\nfont-family:FontAwesome;\r\nsrc:url(lib/bower/font-awesome/css/fontawesome-webfont.eot);\r\n}\r\n\r\nIf I use regular directories instead of symlinks, and a default config.php everything works, and this is what is output. (this is correct) \r\n\r\n@font-face{\r\nfont-family:FontAwesome;\r\nsrc:url(/webvox/wp-content/plugins/js_composer/assets/lib/bower/font-awesome/fonts/fontawesome-webfont.eot);\r\n}\r\n\r\nIs there anything I can do  to get this working? \r\n\r\nThanks\r\n\r\nedit: I was able to get everything working by editing $min_serveOptions['minApp']['allowDirs'];  "},"comment":{"url":"https://api.github.com/repos/OddOneOut/bwp-minify/issues/comments/218785238","html_url":"https://github.com/OddOneOut/bwp-minify/issues/64#issuecomment-218785238","issue_url":"https://api.github.com/repos/OddOneOut/bwp-minify/issues/64","id":218785238,"user":{"login":"kminh","id":6402124,"avatar_url":"https://avatars.githubusercontent.com/u/6402124?v=3","gravatar_id":"","url":"https://api.github.com/users/kminh","html_url":"https://github.com/kminh","followers_url":"https://api.github.com/users/kminh/followers","following_url":"https://api.github.com/users/kminh/following{/other_user}","gists_url":"https://api.github.com/users/kminh/gists{/gist_id}","starred_url":"https://api.github.com/users/kminh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kminh/subscriptions","organizations_url":"https://api.github.com/users/kminh/orgs","repos_url":"https://api.github.com/users/kminh/repos","events_url":"https://api.github.com/users/kminh/events{/privacy}","received_events_url":"https://api.github.com/users/kminh/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T15:02:19Z","updated_at":"2016-05-12T15:02:19Z","body":"If I'm not wrong, you're modifying the `min/config.php` file inside plugin directory directly?"}}