I’m using the bootstrap NPM package (3.3.7) that includes the glyphicons-halflings-regular.woff2 font. I use it extensively for icons throughout my site. I deploy via mup to a plain-vanilla Ubuntu 16.04LTS droplet on DigitalOcean. Running Meteor 1.8.
However, the font fails to load if you navigate directly to a path below the root; https://www.mysite.com/order/abcd1234 shows boxes for icons as the font hasn’t loaded. Looking at the compiled app JS, I see:
Is there a way, somewhere deep in my site’s startup JS or environment variables or mup configuration, that I can force these to be rewritten as absolutes?
Thank you @coagmano for getting me pushed in the right direction!
I tried switching from importing ‘bootstrap/dist/bootstrap.css’ in my client startup file, instead importing ‘boostrap/less/bootstrap.less’ and then overriding @icon-font-path in my own, subsequently-imported, less file. This worked locally, but had the same issue when deployed to my server.
In the end, I was able to use a plain-old CSS rule in my app’s top-level .css file to override the font paths…