moved to hash history
This commit is contained in:
@ -1,10 +0,0 @@
|
||||
const base = document.querySelector('base');
|
||||
|
||||
let basePath;
|
||||
if (base && base.href) {
|
||||
basePath = base.attributes.getNamedItem('href').value;
|
||||
} else {
|
||||
basePath = '';
|
||||
}
|
||||
|
||||
export default basePath;
|
@ -1,10 +1,9 @@
|
||||
import { createHistory } from 'history';
|
||||
import { createHashHistory } from 'history';
|
||||
import { useRouterHistory } from 'react-router';
|
||||
import { syncHistoryWithStore } from 'react-router-redux';
|
||||
import basePath from './basePath';
|
||||
|
||||
let history = useRouterHistory(createHistory)({
|
||||
basename: basePath
|
||||
let history = useRouterHistory(createHashHistory)({
|
||||
queryKey: false
|
||||
});
|
||||
|
||||
const syncHistory = (store) => {
|
||||
|
Reference in New Issue
Block a user