From 3d980ca2e7a4afb2c37fce8f1ccef9e192af980d Mon Sep 17 00:00:00 2001 From: SwiftHawk Date: Wed, 8 May 2024 19:00:39 +0500 Subject: [PATCH] fix: use hash router instead of browser router --- src/main.tsx | 6 +++--- src/utils/misc.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.tsx b/src/main.tsx index 30a290a..0b362fc 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -2,7 +2,7 @@ import _ from 'lodash' import React from 'react' import ReactDOM from 'react-dom/client' import { Provider } from 'react-redux' -import { BrowserRouter } from 'react-router-dom' +import { HashRouter } from 'react-router-dom' import { ToastContainer } from 'react-toastify' import 'react-toastify/dist/ReactToastify.css' import App from './App.tsx' @@ -21,11 +21,11 @@ store.subscribe( ReactDOM.createRoot(document.getElementById('root')!).render( - + - + ) diff --git a/src/utils/misc.ts b/src/utils/misc.ts index dea5e0e..8c20392 100644 --- a/src/utils/misc.ts +++ b/src/utils/misc.ts @@ -75,7 +75,7 @@ export const sendDM = async ( ? 'You have been requested for a signature.' : 'You have received a signed document.' - const decryptionUrl = `http://app.sigit.io${appPrivateRoutes.decryptZip}?file=${fileUrl}&key=${encryptionKey}` + const decryptionUrl = `${window.location.origin}/#${appPrivateRoutes.decryptZip}?file=${fileUrl}&key=${encryptionKey}` const content = `${initialLine}\nHere is the URL for the zip file that you can download.\n${fileUrl}\nHowever, this zip file is encrypted and you need to decrypt it using ${decryptionUrl}`