diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-04-15 17:52:33 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-04-15 17:52:33 +0200 |
commit | d1f4996b77bc9c7b692cd98d835476f1c84edc28 (patch) | |
tree | e5e27ae5b1fa4f4d71623d13ba33e2ff7669f0cd /src/Wallabag/CoreBundle/Controller/TagController.php | |
parent | 51803026501e7098eaa889df489cd037d6dc22cd (diff) | |
parent | 345d74268b2d3d232b2de02f30e950d032a2e7b5 (diff) | |
download | wallabag-d1f4996b77bc9c7b692cd98d835476f1c84edc28.tar.gz wallabag-d1f4996b77bc9c7b692cd98d835476f1c84edc28.tar.zst wallabag-d1f4996b77bc9c7b692cd98d835476f1c84edc28.zip |
Merge pull request #1925 from wallabag/fix-redirect-without-referer
Redirect to homepage if referer is null
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller/TagController.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/TagController.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/TagController.php b/src/Wallabag/CoreBundle/Controller/TagController.php index e8e9ecbe..16d14d79 100644 --- a/src/Wallabag/CoreBundle/Controller/TagController.php +++ b/src/Wallabag/CoreBundle/Controller/TagController.php | |||
@@ -65,7 +65,9 @@ class TagController extends Controller | |||
65 | } | 65 | } |
66 | $em->flush(); | 66 | $em->flush(); |
67 | 67 | ||
68 | return $this->redirect($request->headers->get('referer')); | 68 | $redirectUrl = $this->get('wallabag_core.helper.redirect')->to($request->headers->get('referer')); |
69 | |||
70 | return $this->redirect($redirectUrl); | ||
69 | } | 71 | } |
70 | 72 | ||
71 | /** | 73 | /** |