import {html} from 'htm/preact'; import {Component} from 'preact'; export default class Usage extends Component { render() { return html`
How do I use Re-Nav?

Creating redirects:

Using redirects:

Editing redirects:

Some miscellaneous notes:

As a quick-start you can also insert the examples from below:

Matchers
Type Match Directive Match Examples
Hostname tildes.net http://www.tildes.net/1
https://tildes.net/~creative.timasomo
Regex HOL{3}O https://git.bauke.xyz/holllo2
^https?://www\\.holllo\\.org/?$ https://www.holllo.org/
${'^(?https://holllo\\.org)/(?1)-(?2)$'} https://holllo.org/1-2
  1. Hostname matchers always remove "www." automatically, for convenience.
  2. Regular expressions are always tested with global and case-insensitive flags enabled.
Redirects
Type Change To Example URL Redirected URL1
Hostname nitter.net https://twitter.com/therealTDH https://nitter.net/therealTDH
r.nf https://www.reddit.com/r/TheDearHunter https://r.nf/r/TheDearHunter
Simple https://holllo.org https://holllo.org/home https://holllo.org
Regex2 ${'$/$-$'} https://holllo.org/1-2 https://holllo.org/2-1
  1. The bold highlighted text shows what will be changed.
  2. The regex redirect only works in combination with the regex matcher, as the regex matcher will be used for the capturing groups.
`; } }