mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-11 10:46:43 +02:00
feat(rss): add option for 301 redirect to new feed url
This commit is contained in:
parent
08c7df2a5d
commit
8402cc29d2
4 changed files with 27 additions and 2 deletions
|
|
@ -351,6 +351,14 @@ class PodcastController extends BaseController
|
|||
$this->request->getPost('other_categories') ?? [],
|
||||
);
|
||||
|
||||
// New feed url redirect
|
||||
service('settings')
|
||||
->set(
|
||||
'Podcast.redirect_to_new_feed',
|
||||
$this->request->getPost('redirect_to_new_feed') === 'yes',
|
||||
'podcast:' . $podcast->id
|
||||
);
|
||||
|
||||
$db->transComplete();
|
||||
|
||||
return redirect()->route('podcast-edit', [$podcast->id])->with(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue