Skip to content

Commit

Permalink
fix: fixed the intermittent page 404 error (#50)
Browse files Browse the repository at this point in the history
* fix: fixed the intermittent page 404 error

* removed the magic link middleware

* changed the order of middleware

* fixed account route redirection if not logged in
  • Loading branch information
JazzarKarim authored Jan 13, 2025
1 parent 6aff170 commit 60c6182
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 41 deletions.
16 changes: 0 additions & 16 deletions business-registry-dashboard/app/middleware/00.magic-link.global.ts

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions business-registry-dashboard/app/pages/[...slug].vue

This file was deleted.

3 changes: 3 additions & 0 deletions business-registry-dashboard/app/pages/account/[orgId].vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<script setup lang="ts">
definePageMeta({ order: 0 })
</script>
<template>
<NuxtLayout name="dashboard">
<DashboardContent />
Expand Down
4 changes: 2 additions & 2 deletions business-registry-dashboard/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default defineNuxtConfig({
},

routeRules: {
'/': { redirect: '/en-CA' }
'/en-CA': { redirect: '/' }
},

modules: [
Expand Down Expand Up @@ -88,7 +88,7 @@ export default defineNuxtConfig({
file: 'fr-CA.ts'
}
],
strategy: 'prefix',
strategy: 'prefix_except_default',
lazy: true,
langDir: 'locales',
defaultLocale: 'en-CA',
Expand Down
2 changes: 1 addition & 1 deletion business-registry-dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "business-registry-dashboard",
"private": true,
"type": "module",
"version": "0.0.18",
"version": "0.0.19",
"scripts": {
"build-check": "nuxt build",
"build": "nuxt generate",
Expand Down

0 comments on commit 60c6182

Please sign in to comment.