I uploaded svg sprite to the media folder, but when I’m truing to link the file from the page it shows me the next error: An exception has been thrown during the rendering of a template (“Вказано неприпустимий шлях до файлу: “/generalSprite.svg#up”.”).
Here is the code, I used for svg sprite:
div class="cont-way"
svg class="up"
use xlink:href="{{ 'generalSprite.svg#up'|media }}"
/use
/svg
/div
Is it possible to use svg sprites in my project? How to do that?
I used this code in my header partial but it added the whole svg sprite to the html of the page. You can see in on the screenshoot.
But I cannot understand of how to display one of the icons from the sprite on the page. Can you help me with advice? What should I write to see one of the icons?