Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gohike.nl/react-redirection

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gohike.nl/react-redirection

redirection tool for react

  • 1.0.0-beta.1
  • beta
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 27 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc