Skip to content

EDLLT/PageRedirector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Page Redirector

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.

image

Features

  • ⚡ Instant redirections
  • 🔒 Security validation for URLs
  • 📱 Mobile-friendly
  • 🔍 Minimal code footprint
  • 🚪 Optional auto-close functionality (via TamperMonkey)

Usage

Basic Redirection

Add your target URL as a link parameter:

https://edllt.github.io/PageRedirector/?link=YOUR_URL_HERE

Opening Google

https://edllt.github.io/PageRedirector/?link=https://google.com/

Opening a file in an Obsidian vault

(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

(Optional) Opening a file in Obsidian using the Advanced URI Plugin

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

(Optional) Auto-Close Feature

  1. Install TamperMonkey in your browser
  2. Install the AutoPageClose.js script to TamperMonkey

Technical Details

Security

  • URL validation before redirection
  • Content Security Policy implemented
  • JavaScript validation checks

Browser Support

  • Works in all modern browsers
  • Fallback message for browsers with JavaScript disabled

Contributing

Feel free to open issues or submit pull requests for improvements.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published