Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
apostrophe-redirects
Advanced tools
Allows admins to add redirects from one URL to another within an Apostrophe site.
Table of Contents
First make sure you have an Apostrophe project!
Then:
npm install --save apostrophe-redirects
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!
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.
FAQs
Allows admins to create redirects within an Apostrophe site
The npm package apostrophe-redirects receives a total of 60 weekly downloads. As such, apostrophe-redirects popularity was classified as not popular.
We found that apostrophe-redirects demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.