Skip to content

Commit

Permalink
Fix Welcome page navigation bugs (#4095)
Browse files Browse the repository at this point in the history
* Use more resilient route identifier

* Ensure paths are relative to root
  • Loading branch information
ericpgreen2 authored Feb 19, 2024
1 parent fc5455b commit 5ab4d8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions web-common/src/features/welcome/ProjectCards.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
title: "OpenRTB Programmatic Ads",
description: "Real-time Bidding (RTB) advertising",
image: "bg-[url('$img/welcome-bg-openrtb.png')] bg-no-repeat bg-cover",
firstPage: "dashboard/auction",
firstPage: "/dashboard/auction",
},
{
name: "rill-github-analytics",
title: "Github Analytics",
description: "A Git project's commit activity",
image:
"bg-[url('$img/welcome-bg-github-analytics.png')] bg-no-repeat bg-cover",
firstPage: "dashboard/duckdb_commits",
firstPage: "/dashboard/duckdb_commits",
},
];
Expand Down
2 changes: 1 addition & 1 deletion web-common/src/layout/BasicLayout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ BasicLayout is the backbone of the Rill application.
setContext("rill:app:navigation-width-tween", navigationWidth);
setContext("rill:app:navigation-visibility-tween", navVisibilityTween);
$: showNavigation = $page.url.pathname !== "/welcome";
$: showNavigation = $page.route.id !== "/(application)/welcome";
</script>

<main>
Expand Down

2 comments on commit 5ab4d8c

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.