File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -10,5 +10,5 @@ export default function Page({
1010 user : string ;
1111 } ;
1212} ) : React . ReactElement {
13- return < MissingRepoErrorPage /> ;
13+ return < MissingRepoErrorPage user = { params . user } /> ;
1414}
Original file line number Diff line number Diff line change @@ -7,14 +7,18 @@ import CommunityPageContent from "./content";
77import { usePathname } from "next/navigation" ;
88
99/**
10- * Renders a generic error page.
10+ * Renders an error page for incomplete user-only paths .
1111 */
12- export function MissingRepoErrorPage ( ) : React . ReactElement {
12+ export function MissingRepoErrorPage ( {
13+ user,
14+ } : {
15+ user : string ;
16+ } ) : React . ReactElement {
1317 const errorPath = "nextstrain.org" + usePathname ( ) ;
1418 return (
1519 < >
1620 < ErrorMessage
17- title = { `The community repository, dataset, or narrative "${ errorPath } " doesn't exist. ` }
21+ title = { `The path " ${ errorPath } " is not valid. If you are looking for resources under "${ user } ", add a repo to the path: " ${ errorPath } /{repo}" ` }
1822 contents = { < p > Here is the community page instead.</ p > }
1923 />
2024 < CommunityPageContent />
Original file line number Diff line number Diff line change @@ -10,5 +10,5 @@ export default function Page({
1010 user : string ;
1111 } ;
1212} ) : React . ReactElement {
13- return < MissingRepoErrorPage /> ;
13+ return < MissingRepoErrorPage user = { params . user } /> ;
1414}
You can’t perform that action at this time.
0 commit comments