Iceshrimp.NET/Iceshrimp.Backend/Components/Helpers/VersionedLink.razor
Laura Hausmann b6714dbba9
[backend/razor] Switch to MapStaticAssets
This allows for fingerprinted filenames, ETags & enhanced caching.
2024-11-18 19:02:42 +01:00

10 lines
No EOL
381 B
Text

<link @attributes="AdditionalAttributes" href="/@Assets[href.TrimStart('/')]"/>
@code {
@* ReSharper disable InconsistentNaming *@
[Parameter, EditorRequired] public required string href { get; set; }
@* ReSharper restore InconsistentNaming *@
[Parameter(CaptureUnmatchedValues = true)]
public IDictionary<string, object>? AdditionalAttributes { get; set; }
}