Skip to content

Commit

Permalink
Fix for redirect after poll submit in old browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanoshea committed May 6, 2015
1 parent 5844bbf commit 2ee3e38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/app/controllers/composeController.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ cont.controller('composeController', function ($scope, $filter, $http, $location
$scope.clearPoll();
$scope.hideComposeFlyout();
// send them to the url for that poll
window.location = window.location.origin + window.location.pathname + '#/poll/?p=' + data.pid;
window.location = $scope.rootUrl + '#/poll/?p=' + data.pid;
})
.error(function (data, status, headers, config) {
alert('Something went wrong. Please try to submit again in a few moments.')
Expand Down

0 comments on commit 2ee3e38

Please sign in to comment.