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