Unverified Commit 40ba2108 authored by Vinod Kumar Shyave's avatar Vinod Kumar Shyave Committed by GitHub
Browse files

Merge pull request #278 from RoopashreeLakshmikeshava/app_redirection

App redirection issue fix
No related merge requests found
Showing with 16 additions and 4 deletions
+16 -4
...@@ -69,6 +69,11 @@ ...@@ -69,6 +69,11 @@
console = console || {}; console = console || {};
console.log = function () { }; console.log = function () { };
} }
(() => {
if (location.pathname === '/') {
window.location.href = location.origin + '/app';
}
})();
</script> </script>
<div id="backdrop" className="api_spinner"> <div id="backdrop" className="api_spinner">
<div <div
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"sizes": "512x512" "sizes": "512x512"
} }
], ],
"start_url": ".", "start_url": "./app",
"display": "standalone", "display": "standalone",
"theme_color": "#000000", "theme_color": "#000000",
"background_color": "#ffffff" "background_color": "#ffffff"
......
...@@ -73,7 +73,7 @@ function App() { ...@@ -73,7 +73,7 @@ function App() {
<Toast toastMsg={toast.toastMsg} toastType={toast.toastType} /> <Toast toastMsg={toast.toastMsg} toastType={toast.toastType} />
)} )}
<BrowserRouter> <BrowserRouter basename={'/app'}>
<Routes> <Routes>
<Route path={APPLICANT_ROUTE_MAP.auth} element={<Authenticate />}> <Route path={APPLICANT_ROUTE_MAP.auth} element={<Authenticate />}>
<Route <Route
......
...@@ -59,5 +59,12 @@ ...@@ -59,5 +59,12 @@
}, 1000) }, 1000)
} }
</script> --> </script> -->
<script type="text/javascript">
(() => {
if (location.pathname === '/') {
window.location.href = location.origin + '/app';
}
})
</script>
</body> </body>
</html> </html>
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"sizes": "512x512" "sizes": "512x512"
} }
], ],
"start_url": ".", "start_url": "./app",
"display": "standalone", "display": "standalone",
"theme_color": "#000000", "theme_color": "#000000",
"background_color": "#ffffff" "background_color": "#ffffff"
......
...@@ -101,7 +101,7 @@ function App() { ...@@ -101,7 +101,7 @@ function App() {
{toast.toastOpen && ( {toast.toastOpen && (
<Toast toastMsg={toast.toastMsg} toastType={toast.toastType} /> <Toast toastMsg={toast.toastMsg} toastType={toast.toastType} />
)} )}
<BrowserRouter> <BrowserRouter basename={'/app'}>
<Routes> <Routes>
{/* Default landing page */} {/* Default landing page */}
<Route path="/" element={<Navigate to="/auth/login" />} /> <Route path="/" element={<Navigate to="/auth/login" />} />
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment