Skip to content

Commit

Permalink
feat: Redirect to the correct file directly
Browse files Browse the repository at this point in the history
  • Loading branch information
itssimple committed Dec 3, 2023
1 parent 66d38f1 commit f840749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CFLookup/Pages/CFFileEmbed.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public async Task<IActionResult> 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}");
}
}

Expand Down

0 comments on commit f840749

Please sign in to comment.