0

I am trying to configure the assets paths for my symfony2 application. I use the following asset_base_urls in config_prod.yml

framework:
    templating:      
        engines: ['twig']
        assets_base_urls: http://example.com/mysymfony2app/web/

The fontawesome icons display as expected when i type in the browser http://example.com However, when I add www as in http://www.example.com, the icons do not display.

Anyone knows how to fix this? Or a better implementation?

A.L
  • 10,259
  • 10
  • 67
  • 98
sydney
  • 51
  • 4
  • Are you sure that the URL with or without `www` points to the same directory? What is the errer message, an 404 error? – A.L Jan 28 '14 at 16:31
  • Yes they point to the same directory. No error as such, all other assets display(e.g images) with the exception of fontawsome icons. – sydney Jan 28 '14 at 16:33
  • Go directly to the URL of the image to see the error. – A.L Jan 28 '14 at 16:34
  • Firebug does not give any error messages. I need to emphasize, all other assets render just fine, that is images and css. It is only fontawesome icons that have an issue. – sydney Jan 28 '14 at 16:40
  • How are the icons displayed? Are they called from a CSS file? Do you use a filter with Assetic? Please show examples of code of a *showing* image and one that doesn't show. How did you export the assets? – A.L Jan 28 '14 at 17:22
  • ok. I think i got it. seems to be a browser issue, firefox being the culprit. All other browsers(IE, Chrome, Blackberry browser) work just fine. I am unable to post an answer to the question as I do not have enough reputation. – sydney Jan 28 '14 at 17:36

1 Answers1

0

Found out has nothing to do with symfony in the first place. It is related to this issue: Font awesome not working in Firefox

The answer given fixes it.

Community
  • 1
  • 1
sydney
  • 51
  • 4