diff --git a/docs-app/src/routes/page.ts b/docs-app/src/routes/page.ts new file mode 100644 index 00000000..dd705550 --- /dev/null +++ b/docs-app/src/routes/page.ts @@ -0,0 +1,13 @@ +import Route from '@ember/routing/route'; + +import { handlePotentialIndexVisit } from 'kolay'; + +import type RouterService from '@ember/routing/router-service'; + +type Transition = ReturnType; + +export default class PageRoute extends Route { + beforeModel(transition: Transition) { + handlePotentialIndexVisit(this, transition); + } +} diff --git a/docs-app/src/templates/index.gts b/docs-app/src/templates/index.gts index 6249412f..84169bf3 100644 --- a/docs-app/src/templates/index.gts +++ b/docs-app/src/templates/index.gts @@ -41,7 +41,7 @@ import { <:callToAction> Get Started ➤ @@ -188,10 +188,7 @@ const Socials = ; const GetStarted = ;