forked from geolba/tethys.frontend
- add absolute urls in nav menu inside doi subdomain
This commit is contained in:
parent
8fd116df7f
commit
a72337ed6f
2 changed files with 63 additions and 11 deletions
10
src/main.ts
10
src/main.ts
|
@ -1,6 +1,6 @@
|
|||
import { createApp } from "vue";
|
||||
import App from "./App.vue";
|
||||
// import App2 from "./App2.vue";
|
||||
import App2 from "./App2.vue";
|
||||
import "./assets/scss/main-styles.scss";
|
||||
// import FontAwesomeIcon from "@/utilities/fontawesome";
|
||||
import index from "./router/index";
|
||||
|
@ -11,17 +11,17 @@ import VueMatomo from "vue-matomo";
|
|||
const host = window.location.host;
|
||||
const parts = host.split(".");
|
||||
// const domainLength = 2; // route1.example.com => domain length = 3
|
||||
let router;
|
||||
let router, app;
|
||||
// let routes;
|
||||
if (parts[0] === "doi") {
|
||||
router = route1;
|
||||
// app = App2;
|
||||
app = App2;
|
||||
} else {
|
||||
// If you want to do something else just comment the line below
|
||||
router = index;
|
||||
// app = App;
|
||||
app = App;
|
||||
}
|
||||
const app = App;
|
||||
// const app = App;
|
||||
|
||||
createApp(app)
|
||||
.use(VueMatomo, {
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue