Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
#680 - updaste commenting
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-englander committed Mar 7, 2023
1 parent 8ce668d commit 7ab631b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion middleware/redirect.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
* was agreed there would be no "BEARS" landing page.
* This solves the issue of having unreliable redirects in place
* that go to https://beta.usa.gov/life-experiences at unexpected times.
* Usage in pages/index.vue -> middleware: "redirect",
* Usage in pages/index.vue -> middleware: "redirect"
* all other pages in the mutllife event version still work as expected
* and this does not intercede upon those pages.
* @returns
*/
export default function ({ store, redirect, app }) {
Expand Down
1 change: 1 addition & 0 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
import { tObj } from "~/services/translation"
export default {
layout: "default",
// Implement the middleware redirect.js routine.
middleware: "redirect",
async asyncData({ $content }) {
const lifeEvents = await $content("life-events").sortBy("title").fetch()
Expand Down

0 comments on commit 7ab631b

Please sign in to comment.