Skip to content
Snippets Groups Projects
Verified Commit 2b95ac4c authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Redirect all URLs to the SPA

parent 5923a7fb
No related branches found
No related tags found
2 merge requests!1123Resolve "Finalise Vuetify app as SPA",!1066Translations update from Weblate
Pipeline #103692 failed
......@@ -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({
......
......@@ -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"))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment