From f840749569e6c4d864cacb8ef4a40199a4f4dffa Mon Sep 17 00:00:00 2001 From: NoLifeKing Date: Sun, 3 Dec 2023 15:20:50 +0100 Subject: [PATCH] feat: Redirect to the correct file directly --- CFLookup/Pages/CFFileEmbed.cshtml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CFLookup/Pages/CFFileEmbed.cshtml.cs b/CFLookup/Pages/CFFileEmbed.cshtml.cs index df6d59f..d1ad966 100644 --- a/CFLookup/Pages/CFFileEmbed.cshtml.cs +++ b/CFLookup/Pages/CFFileEmbed.cshtml.cs @@ -63,7 +63,7 @@ public async Task OnGet(int fileId) { if (!IgnoredUserAgentsForRedirect.Any(i => Request.Headers.UserAgent.Any(ua => ua.Contains(i)))) { - return Redirect(FoundMod.Links.WebsiteUrl); + return Redirect($"{FoundMod.Links.WebsiteUrl}/files/{fileId}"); } }