georgringer / news-redirect-slug-change
Generate redirect if the slug changes
Fund package maintenance!
georgringer
paypal.me/GeorgRinger/10
www.amazon.de/hz/wishlist/ls/8F573K08TSDG
Patreon
Installs: 26 415
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 2
Open Issues: 0
Type:typo3-cms-extension
Requires
- georgringer/news: ^9 || ^10 || ^11
- typo3/cms-core: ^10.4 || ^11 || ^12.3
- typo3/cms-redirects: ^10.4 || ^11 || ^12.3
README
TYPO3 Extension news_redirect_slug_change
This extension generates redirects for EXT:news records if the slug is changed.
Setup
Install the extension just as any other extenison as well.
- Use
composer req georgringer/news-redirect-slug-change
- Upload to TER will follow later
Configuration
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
Say thanks
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
Thanks!