remove web hash mode

pull/2424/head
Tuğçe Küçükoğlu 2022-04-08 16:56:28 +03:00
parent 5acd2aee65
commit aadbbb202d
3 changed files with 11 additions and 2 deletions

8
public/.htaccess Normal file
View File

@ -0,0 +1,8 @@
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /primevue/
RewriteRule ^primevue/index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /primevue/index.php [L]
</IfModule>

View File

@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<base href="<%= BASE_URL %>">
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-93461466-1"></script>
<script>
window.dataLayer = window.dataLayer || [];

View File

@ -1,4 +1,4 @@
import {createRouter, createWebHashHistory} from 'vue-router'
import {createRouter, createWebHistory} from 'vue-router';
import Home from '../Home.vue';
import App from '../App.vue';
@ -838,7 +838,7 @@ const routes = [
];
const router = createRouter({
history: createWebHashHistory(),
history: createWebHistory(process.env.BASE_URL),
routes,
scrollBehavior (to, from, savedPosition) {
if (savedPosition)