1.0.0-beta.1 • Published 3 years ago

@gohike.nl/react-redirection v1.0.0-beta.1

Weekly downloads
1
License
MIT
Repository
bitbucket
Last release
3 years ago

React-Redirection 🚀

Please know this package is still under development.

Redirection is a plugin in wordpress that handles redirects.

This package is for handling redirects using a headless wordpress template.

How to use.

You can use the packages by importing {Link} from "react-redirection"

It's a React component, so you can just pass down the things you need as a prop.

:white_check_mark:

import { Link } from "@hike/react-redirection";

const App = (data) => (
  <Link
    uri={data?.uri}
    url={data?.url}
    title={data?.title}
    target={data?.target}
  >
    Link
  </Link>
);

export default App;

Features

Currently we support:

  • URI redirects (default).
  • Regex redirects.

Up and coming:

  • Server name redirects.(from gohike.eu to gohike.nl/en)
  • URL and language (Redirects)
  • 404 (Response)
  • URL and header (Redirect)
  • HTTP codes (Response)

Never going to be supported:

  • Redirect to random post

  • URL and cookie

  • URL and user agent

  • URL and login status

  • URL and referrer

  • URL and IP

  • URL and custom filter

1.0.8

3 years ago

1.0.0-beta.1

3 years ago

1.0.8-beta.5

3 years ago

1.0.8-beta.1

3 years ago

1.0.6

3 years ago

1.0.8-beta.4

3 years ago

1.0.8-beta.3

3 years ago

1.0.8-beta.2

3 years ago

1.0.5

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago