Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117521400
D1534.1774853530.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
493 B
Referenced Files
None
Subscribers
None
D1534.1774853530.diff
View Options
diff --git a/src/resources/js/bootstrap.js b/src/resources/js/bootstrap.js
--- a/src/resources/js/bootstrap.js
+++ b/src/resources/js/bootstrap.js
@@ -50,7 +50,16 @@
Vue.use(VueRouter)
+let vueRouterBase = '/'
+try {
+ let url = new URL(window.config['app.url'])
+ vueRouterBase = url.pathname
+} catch(e) {
+ // ignore
+}
+
window.router = new VueRouter({
+ base: vueRouterBase,
mode: 'history',
routes: window.routes,
scrollBehavior (to, from, savedPosition) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 30, 6:52 AM (1 w, 8 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18795060
Default Alt Text
D1534.1774853530.diff (493 B)
Attached To
Mode
D1534: Support app.url with a path in vue router
Attached
Detach File
Event Timeline