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}`