Navigate to arbitrary URL #1522
-
I'm building an electron app and using deep links. This allows a user to enter Currently, I am doing the following: // Copy the current URL
const hashUrl = encodeURIComponent(window.location.hash);
await navigator.clipboard.writeText(`my-app://${hashUrl}`);
// When a link is opened, redirect to the correct route
window.electron.onDeepLink((value: string) => {
const urlHash = decodeURIComponent(value);
window.location.hash = urlHash;
}); As I am using Electron, I am using the hash history. The link is like Is there a way to call |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
how about |
Beta Was this translation helpful? Give feedback.
how about
router.history.push('/my-route?search=123')
?