-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: redirect from organism base page (#728)
* redirect * no longer needed * fix * try to fix title issue * fix * import order fix * try this * fix * format * fix * fix * remove second test of title
- Loading branch information
1 parent
483f046
commit 484b192
Showing
4 changed files
with
7 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,6 @@ | ||
--- | ||
import { BackButton } from '../../components/Navigation/BackButton'; | ||
import { cleanOrganism } from '../../components/Navigation/cleanOrganism'; | ||
import BaseLayout from '../../layouts/BaseLayout.astro'; | ||
const { organism } = cleanOrganism(Astro.params.organism); | ||
return Astro.redirect(`/${organism.key}/search`); | ||
--- | ||
|
||
<BaseLayout title={organism!.displayName}> | ||
<div class='flex items-center'> | ||
<BackButton marginRight={2} client:load /> | ||
<h1 class='title'>Organism {organism?.displayName}</h1> | ||
</div> | ||
</BaseLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters