3

I need to reference a static resource JS file from the header of a community portal.

What would be the appropriate way to get the url for the static resource? Right now I have the JS code of the resource loaded in the header but it's massive and I would like to move it out of the header.

1 Answer 1

3

Pretty sure this syntax will work:

/sfsites/c/resource/resourcename/foldername

Your might need to experiment with the names at the end, I always get mixed up with that bit.

I use this syntax for CSS overrides in the community, so I'm fairly sure the same syntax will work for extra header markup.

1
  • Absolutely correct, thank you so much!
    – Arthlete
    Commented Dec 21, 2019 at 6:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .