Skip to content

Commit

Permalink
fix(taxsearch): Add redirect for broken URL /taxsearch
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmussig committed Mar 17, 2023
1 parent bbde5b8 commit 8b26740
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pages/species.vue
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export default Vue.extend({
return this.clusterData.genomes
},
species(): string {
const species = this.$route.query.id;
const species = this.$route.query.id || this.$route.query.s;
if (species) {
return species as string;
} else {
Expand Down
6 changes: 1 addition & 5 deletions static/_headers
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ https://:project.pages.dev/*

# Set the default caching rules
/*
Cache-Control: max-age=0, must-revalidate, proxy-revalidate
Cache-Control: max-age=86400, must-revalidate, proxy-revalidate

/_nuxt/*
! Cache-Control
Expand All @@ -13,7 +13,3 @@ https://:project.pages.dev/*
/favicon.ico
! Cache-Control
Cache-Control: max-age=2592000, must-revalidate, proxy-revalidate

/*.html
! Cache-Control
Cache-Control: max-age=86400, must-revalidate, proxy-revalidate
2 changes: 1 addition & 1 deletion static/_redirects
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/stats/ /stats/r207 301
/genomes* /genome:splat 301
/taxon_history* /taxon-history:splat 301
/taxsearch s=:species /species?id=:species 301
/taxsearch* /species:splat 301

0 comments on commit 8b26740

Please sign in to comment.