New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

apostrophe-redirects

Package Overview
Dependencies
Maintainers
10
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apostrophe-redirects

Allows admins to create redirects within an Apostrophe site

  • 0.5.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
73
increased by2.82%
Maintainers
10
Weekly downloads
 
Created
Source

apostrophe-redirects

Allows admins to add redirects from one URL to another within an Apostrophe site.

Table of Contents

Installation

First make sure you have an Apostrophe project!

Then:

npm install --save apostrophe-redirects

Configuration

In app.js, add the module to your configuration:

... other modules ...
'apostrophe-redirects': { }

Also, edit outerLayout.html so your admins can find the UI:

{{ aposRedirectsMenu({ edit: permissions.admin }) }}

That's it!

Usage

While logged in as an admin, click the "Redirects" button. A list of redirects appears, initially empty. Add as many redirects as you like. The "from" URL must begin with a /. The "to" URL may be anything and need not be on your site. The "notes" field is for your own convenience.

Be aware that each redirect is live as soon as you save it and that it is possible to make a mess with redirects. In a pinch, you can remove unwanted redirects via the MongoDB command line client (see the aposRedirects collection).

Also be aware that Apostrophe already creates "soft redirects" every time you change the slug of a page. So you shouldn't need manually created "hard redirects" in that situation.

Keywords

FAQs

Package last updated on 18 Aug 2014

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