fix: use hash router instead of browser router

This commit is contained in:
SwiftHawk 2024-05-08 19:00:39 +05:00
parent 9064b0c8c3
commit 3d980ca2e7
2 changed files with 4 additions and 4 deletions

View File

@ -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(
<React.StrictMode>
<BrowserRouter>
<HashRouter>
<Provider store={store}>
<App />
<ToastContainer />
</Provider>
</BrowserRouter>
</HashRouter>
</React.StrictMode>
)

View File

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