%pathto()% only working on first instance of css macro

@tpbradley I am trying to add some tweaks to my Foundation 6 theme. I notice that when I add %pathto(foundation.css)% twice in my HTML, only the first instance gets translated into the path to the theme css. However, if I add %pathto(foundation.js)% multiple times, it does get translated properly for all instance in the HTML.

Here is my theme for you to test… https://d.pr/f/HFdUab

That’s an interesting one. I don’t think it’s necessarily a bug as you’d never realistically (correct me if I’m wrong) include the same css file multiple times. Turning off “Consolidate CSS files” in the advanced settings fixes it, as in the foundation.css file is now included multiple times. When that setting is enabled, all CSS is merged into a single file which should only be included once, hence you’re seeing just one replacement occur.

I am playing around with some meta tags where the path would be interesting to have twice. It’s not a huge deal. I just thought I would let you know just in case. It’s less important than it was for the JS file path.