From 1368c6e97bc39568611c4412a132d92e9719157c Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Sun, 1 Aug 2021 01:38:26 +0300 Subject: [PATCH] Replaced HashRouter with BrowserRouter --- .env | 4 +++- src/components/App.js | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.env b/.env index 3fce25c..8b0c925 100644 --- a/.env +++ b/.env @@ -1,2 +1,4 @@ REACT_APP_IDENTITY_AUTHENTICATION_URL=https://toodle.ddns.net/identity-server-api/identity/authenticate?UserName={username}&Password={password} -REACT_APP_ENABLE_TEMPLATE_CONTENT=True \ No newline at end of file +REACT_APP_ENABLE_TEMPLATE_CONTENT=True + +#PUBLIC_URL=/cdn-admin/ \ No newline at end of file diff --git a/src/components/App.js b/src/components/App.js index 67f1fd7..9b60287 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -1,5 +1,5 @@ import React, { useEffect } from "react"; -import { HashRouter, Route, Switch, Redirect } from "react-router-dom"; +import { BrowserRouter, Route, Switch, Redirect } from "react-router-dom"; // components import Layout from "./Layout/Layout"; @@ -24,14 +24,14 @@ export default function App() { }, [messageCode, t, notify]); return ( - + } /> - + ); function PrivateRoute({ component, ...rest }) {