Skip to main content

Helpers for Wagtail Redirects

Project description

wagtail-automatic-redirects

Package to help with Wagtail URL redirects. Wagtail comes with a redirects app which helps to manually create redirects in Wagtail admin. This helper app helps to automatically create redirects when the URL of Page is changed. Redirects will be created for the page and all its child pages automatically. This project uses the page revisions and publish signal to automate the redirects creation process.

Installation

pip install wagtail-automatic-redirects

Add the package to your project's settings

INSTALLED_APPS = [
    # ... Other apps
    "wagtail_automatic_redirects",
    "wagtail.contrib.redirects",
    # ... Other apps
]

Make sure the INSTALLED_APPS setting include "wagtail.contrib.redirects", app from Wagtail.

Also, check the MIDDLEWARE setting include

MIDDLEWARE = [
    # ... Other middlewares
    "wagtail.contrib.redirects.middleware.RedirectMiddleware",
    # ... Other middlewares
]

License

BSD

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for wagtail-automatic-redirects, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size wagtail_automatic_redirects-1.0.0-py3-none-any.whl (9.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size wagtail-automatic-redirects-1.0.0.tar.gz (7.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page