seo changes for meta tags

This commit is contained in:
survellow
2024-07-02 18:57:56 +02:00
parent 4396749142
commit a003ba736c
8 changed files with 856 additions and 28 deletions

View File

@@ -14,7 +14,7 @@
//You should have received a copy of the GNU Affero General Public License
//along with this program. If not, see <https://www.gnu.org/licenses/>.
import { createRouter, createWebHistory } from "vue-router";
import { createMemoryHistory, createRouter, createWebHistory } from "vue-router";
const CourseSelection = () => import("../view/CourseSelection.vue");
const AdditionalModules = () => import("../view/create/AdditionalModules.vue");
@@ -31,7 +31,7 @@ const Faq = () => import("../view/Faq.vue");
import i18n from "../i18n";
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
history: import.meta.env.SSR ? createMemoryHistory(import.meta.env.BASE_URL) : createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: "/",
@@ -47,6 +47,7 @@ const router = createRouter({
component: RoomFinder,
meta: {
label: "roomFinderPage.roomSchedule",
description: "roomFinderPage.description",
},
},
{
@@ -55,7 +56,8 @@ const router = createRouter({
component: FreeRooms,
meta: {
label: "freeRooms.freeRooms",
}
description: "freeRooms.description",
},
},
{
path: "/faq",
@@ -63,6 +65,7 @@ const router = createRouter({
component: Faq,
meta: {
label: "faq",
description: "faqView.description",
}
},
{
@@ -79,6 +82,7 @@ const router = createRouter({
component: EditAdditionalModules,
meta: {
label: "editCalendar",
description: "editCalendarView.description"
}
},
{
@@ -87,6 +91,7 @@ const router = createRouter({
component: EditModules,
meta: {
label: "editCalendar",
description: "editCalendarView.description"
}
},
{
@@ -103,6 +108,7 @@ const router = createRouter({
component: EditCalendarView,
meta: {
label: "editCalendar",
description: "editCalendarView.description"
}
},
{