A minimal and lightning-fast URL redirector with auto-close functionality.
Originally designed for Obsidian protocol links but works with any valid URL.
The purpose of this is to integrate it into sites which by default don't process the obsidian://
protocol as a web-url.
I personally use it to link to my Obsidian Vaults within Google Tasks.
- ⚡ Instant redirections
- 🔒 Security validation for URLs
- 📱 Mobile-friendly
- 🔍 Minimal code footprint
- 🚪 Optional auto-close functionality (via TamperMonkey)
Add your target URL as a link
parameter:
https://edllt.github.io/PageRedirector/?link=YOUR_URL_HERE
https://edllt.github.io/PageRedirector/?link=https://google.com/
(Copy the Obsidian URL by right-clicking on a file within Obsidian then click "Copy Obsidian URL")
https://edllt.github.io/PageRedirector/?link=obsidian://open?vault=YOURVAULT&file=FILEPATH
I recommended using Obsidian Advanced URI instead because you can customize the behavior to:
- Open specific headings
- Navigate to custom positions in Obsidian canvas
- Control whether links open in new or current tabs
- And much more
Example using Obsidian Advanced URI plugin: (After installing the plugin, copy the Obsidian Advanced URI by right-clicking on a file within Obsidian then click "Copy Advanced URI")
https://edllt.github.io/PageRedirector/?link=obsidian://adv-uri?vault=YOURVAULT&file=FILEPATH&openmode=true
- Install TamperMonkey in your browser
- Install the AutoPageClose.js script to TamperMonkey
- URL validation before redirection
- Content Security Policy implemented
- JavaScript validation checks
- Works in all modern browsers
- Fallback message for browsers with JavaScript disabled
Feel free to open issues or submit pull requests for improvements.