Backlog Directory is not picking up part of domain

Example:

http://hyperknightservers.com/hub/gametesters/scrum/backlog

http://hyperknightservers.com/gametesters/scrum/backlog

Produces 404 happens when you create a task or user story.

Line and file that controls this:

backlog/atrium_scrum_backlog.module

<?php

include_once('atrium_scrum_backlog.features.inc');

/**
 * Implementation of hook_automodal_close_args_alter().
 */
function atrium_scrum_backlog_automodal_close_args_alter(array &$args) {
  $request = explode('/', $_REQUEST['q']);
<strong>  $args['redirect'] = '/' . $request[0] . '/' . $_GET['destination'];</strong>
}

For a temp fix change

$args['redirect'] =<strong> '/'</strong> . $request[0] . '/' . $_GET['destination'];  to

$args['redirect'] = '<strong>/hub/</strong>' . $request[0] . '/' . $_GET['destination'];

(Replace Hub with the correct directory.)