Metadata-Version: 2.1
Name: wagtail-automatic-redirects
Version: 1.0.0
Summary: Helpers for Wagtail Redirects
Home-page: https://github.com/themotleyfool/wagtail-automatic-redirects
Author: Parbhat Puri
Author-email: me@parbhatpuri.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Framework :: Django
Classifier: Framework :: Wagtail
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: wagtail
Provides-Extra: test
Requires-Dist: pytest-django ; extra == 'test'
Requires-Dist: wagtail-factories ; extra == 'test'
Requires-Dist: pytest ; extra == 'test'

# wagtail-automatic-redirects

Package to help with Wagtail URL redirects. Wagtail comes with a [redirects app](https://docs.wagtail.io/en/stable/editor_manual/managing_redirects.html) 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

```python
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

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

## License

[BSD](https://github.com/themotleyfool/wagtail-automatic-redirects/blob/master/LICENSE)


