Page MenuHomeWrite.as

Support custom redirect rules
Closed, ResolvedPublic

Description

Overview

Allow publishers to set a list of redirect rules for their publication.

Users

#fight_back_news

Implementation

Create a system that works similarly to Ghost's. Add a collectionredirects table:

collection_idfromtopermanent

When a page isn't found, look up the from fields and see if any match. If so, redirect by 301 or 302, depending on the permanent bool value.

UI

Users should have a way to add redirects in the admin panel. To start, they'll get access to a JSON input field. To populate this field, we'll query collectionredirects and display the JSON. When saving this data, we'll parse the JSON and then update the database.

This will be addressed in T889: UI for editing custom redirects.

Revisions and Commits

Event Timeline

matt changed the task status from Open to Waiting.Feb 18 2021, 1:20 PM
matt created this task.
matt moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.
matt added a parent task: Restricted Maniphest Task.Feb 18 2021, 1:22 PM
matt changed the task status from Waiting to Open.Mar 8 2021, 8:20 PM
matt raised the priority of this task from Normal to High.
matt moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Apr 3 2021, 2:28 PM
matt added a commit: Restricted Diffusion Commit.Mar 2 2022, 9:27 AM

This is supported on the backend now, and enabled on the #fight_back_news blog. a user-facing interface for this will be addressed in T889.