Skip to content

Commit

Permalink
Merge pull request #21 from storybookjs/feat/trigger-via-path
Browse files Browse the repository at this point in the history
Trigger via `/onboarding` path instead of query parameter
  • Loading branch information
valentinpalkovic committed Jun 6, 2023
2 parents d5c20f0 + 648a737 commit 9320299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const App = lazy(() => import("./App"));
// 1. The onboarding query parameter is present
// 2. The example button stories are present
addons.register("@storybook/addon-onboarding", async (api) => {
const isOnboarding = api.getUrlState().queryParams.onboarding;
const isOnboarding = api.getUrlState().path === '/onboarding';

if (!isOnboarding) {
return;
Expand Down

0 comments on commit 9320299

Please sign in to comment.