diff --git a/portal/modules/portal_poll.php b/portal/modules/portal_poll.php
index 4466cf1a..2ee75102 100644
--- a/portal/modules/portal_poll.php
+++ b/portal/modules/portal_poll.php
@@ -214,10 +214,10 @@ class portal_poll_module extends \board3\portal\modules\module_base
if($s_can_up_vote)
{
+ $redirect_url = append_sid("{$phpbb_root_path}app.$phpEx/portal");
+
if (!sizeof($voted_id) || sizeof($voted_id) > $topic_data['poll_max_options'] || in_array(VOTE_CONVERTED, $cur_voted_id))
{
- $redirect_url = append_sid("{$phpbb_root_path}portal.$phpEx");
-
meta_refresh(5, $redirect_url);
if (!sizeof($voted_id))
{
@@ -295,8 +295,6 @@ class portal_poll_module extends \board3\portal\modules\module_base
//, topic_last_post_time = ' . time() . " -- for bumping topics with new votes, ignore for now
$db->sql_query($sql);
- $redirect_url = append_sid("{$phpbb_root_path}portal.$phpEx");
-
meta_refresh(5, $redirect_url);
trigger_error($user->lang['VOTE_SUBMITTED'] . '
' . sprintf($user->lang['RETURN_PORTAL'], '', ''));
}
@@ -437,8 +435,8 @@ class portal_poll_module extends \board3\portal\modules\module_base
}
$poll_view_str = urlencode(implode(',', $make_poll_view));
- $portalpoll_url= append_sid("{$phpbb_root_path}portal.$phpEx", "polls=$poll_view_str");
- $portalvote_url= append_sid("{$phpbb_root_path}portal.$phpEx", "f=$forum_id&t=$topic_id");
+ $portalpoll_url= append_sid("{$phpbb_root_path}app.$phpEx/portal", "polls=$poll_view_str");
+ $portalvote_url= append_sid("{$phpbb_root_path}app.$phpEx/portal", "f=$forum_id&t=$topic_id");
$viewtopic_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id");
$poll_end = $data['poll_length'] + $data['poll_start'];
diff --git a/styles/prosilver/template/portal/modules/poll_side.html b/styles/prosilver/template/portal/modules/poll_side.html
index 5bcb6ee8..cdc37f37 100644
--- a/styles/prosilver/template/portal/modules/poll_side.html
+++ b/styles/prosilver/template/portal/modules/poll_side.html
@@ -46,7 +46,7 @@
{poll_side.S_HIDDEN_FIELDS}
-
+