ArrowsK
How to use `f-partial` from Fresh?
Hey, I'm using partials and they work fine - as long as I use regular text in a link (<a>), but when I put SVG icon inside the system leads me to 404 error. Any clue why?
<a href="/main/trening" f-partial="/partials/main/trening">
klikne me
</a>
<a href="/main/trening" f-partial="/partials/main/trening">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 -960 960 960"
>
<path d="m826-585-56-56 30-31-128-128-31 30-57-57 30-31q23-23 57-22.5t57 23.5l129 129q23 23 23 56.5T857-615l-31 30ZM346-104q-23 23-56.5 23T233-104L104-233q-23-23-23-56.5t23-56.5l30-30 57 57-31 30 129 129 30-31 57 57-30 30Zm397-336 57-57-303-303-57 57 303 303ZM463-160l57-58-302-302-58 57 303 303Zm-6-234 110-109-64-64-109 110 63 63Zm63 290q-23 23-57 23t-57-23L104-406q-23-23-23-57t23-57l57-57q23-23 56.5-23t56.5 23l63 63 110-110-63-62q-23-23-23-57t23-57l57-57q23-23 56.5-23t56.5 23l303 303q23 23 23 56.5T857-441l-57 57q-23 23-57 23t-57-23l-62-63-110 110 63 63q23 23 23 56.5T577-161l-57 57Z" />
</svg>
</a>
29 replies