Generate redirect if the slug changes
This package is auto-updated.
Last update: 2022-09-05 12:36:34 UTC
This extension generates redirects for EXT:news records if the slug is changed.
Install the extension just as any other extenison as well.
composer req georgringer/news-redirect-slug-change
- Upload to TER will follow later
The only thing which must be configured is the page which is used as detail page.
This can be either done by PageTsConfig with
tx_news.redirect.pageId = 456 or
within the site configuration. See below for full example.
settings: redirectsNews: # Detail page id which can be overruled py pageTsConfig tx_news.redirect.pageId = 456 pageId: 123 # Automatically create redirects for news with a new slug (works only in LIVE workspace) # (default: true) autoCreateRedirects: true # Time To Live in days for redirect records to be created - `0` disables TTL, no expiration # (default: 0) redirectTTL: 30 # HTTP status code for the redirect, see # https://developer.mozilla.org/en-US/docs/Web/HTTP/Redirections#Temporary_redirections # (default: 307) httpStatusCode: 307
If you are using this extension in one of your projects or for a client, please think about sponsoring this extension.
- Paypal: https://www.paypal.me/GeorgRinger/20
- or contact me if you need an invoice