diff --git a/aleksis/core/assets/app.js b/aleksis/core/assets/app.js index 9d9ca01cb0d9661e4edb05a69aed4daefde918a1..b5104507e453e6842ebafda3b63ac0c6689f8da9 100644 --- a/aleksis/core/assets/app.js +++ b/aleksis/core/assets/app.js @@ -46,9 +46,6 @@ Vue.component(MessageBox.name, MessageBox); // Load MessageBox globally as other const router = new VueRouter({ mode: "history", - // routes: [ - // { path: "/", component: "TheApp" }, - // } }); const app = new Vue({ diff --git a/aleksis/core/urls.py b/aleksis/core/urls.py index bba7ac7b376ba19d7b84c000a7ad502ee9822543..0cf8adbf82b2ab38dfa42df8a881cd59af239cd8 100644 --- a/aleksis/core/urls.py +++ b/aleksis/core/urls.py @@ -2,7 +2,7 @@ from django.apps import apps from django.conf import settings from django.contrib import admin from django.contrib.auth import views as auth_views -from django.urls import include, path +from django.urls import include, path, re_path from django.views.decorators.csrf import csrf_exempt from django.views.generic import TemplateView from django.views.i18n import JavaScriptCatalog @@ -422,3 +422,5 @@ for app_config in apps.app_configs.values(): except ModuleNotFoundError: # Ignore exception as app just has no URLs pass # noqa + +urlpatterns.append(re_path(r'^(?P<url>.*)$', TemplateView.as_view(template_name="core/vue_index.html"), name="vue_app"))