Skip to content

Commit

Permalink
Merge pull request #1431 from Artsdatabanken/develop
Browse files Browse the repository at this point in the history
Hotfix url after enum change
  • Loading branch information
steinho authored Aug 12, 2024
2 parents 81eb0b0 + 4d87493 commit 2a6592f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ public AlienSpeciesController(IOptions<ApplicationOptions> options, AttachmentRe
[Route("2023")]
public async Task<IActionResult> Index(AlienSpeciesListViewModel viewModel, int? page, bool export)
{
// hotfix - permanent redirect to fix google cache
if (viewModel.TaxonRank.Any() && viewModel.TaxonRank[0] == "tvi")
{
return RedirectPermanent("https://artsdatabanken.no/lister/fremmedartslista/2023?TaxonRank=AssessedAtSameRank");
}

var query = await DataRepository.GetAlienSpeciesAssessments();
var unfilteredQuery = query;

Expand Down

0 comments on commit 2a6592f

Please sign in to comment.