Merge pull request #2424 from tugcekucukoglu/webhash

remove web hash mode
pull/2426/head
Tuğçe Küçükoğlu 2022-04-08 16:56:56 +03:00 committed by GitHub
commit a50dea8095
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)