Skip to content

Commit

Permalink
Fix redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
t11r committed Dec 15, 2023
1 parent afc17ef commit 33b03d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ const routes = [
path: '/',
component: Home,
},
{
path: '/examples/',
redirect: '/examples/basic/',
},
{
path: '/examples/api/',
component: () => import('../views/PageExampleApi.vue'),
Expand Down
6 changes: 4 additions & 2 deletions src/views/PageHome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ ul.arrow-list(style="margin: 0 auto 1rem; width: 14rem")
li Fully responsive and accessible
li State can be reflected in bookmarkable URL
p.center
router-link.button(to="/examples/") Usage examples
//- NOTE: We would prefer to redirect from /examples/ to /examples/basic/,
//- but this does not work with prerendering.
router-link.button(to="/examples/basic/") Usage examples

.highlight
h2 Get TIFY
Expand All @@ -56,7 +58,7 @@ h2 Getting Started
a.button.-outline(:href="githubUrl") GitHub Repository
.col.-collapsed
p
router-link.button(to="/examples/") Usage examples
router-link.button(to="/examples/basic/") Usage examples
</template>

<script>
Expand Down

0 comments on commit 33b03d8

Please sign in to comment.