Skip to content

Commit

Permalink
route_url now support ajax request through routes when FORCE_SSL_ADMI…
Browse files Browse the repository at this point in the history
…N is true.
  • Loading branch information
olitooni committed Oct 18, 2016
1 parent 69a456e commit 74a98ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Herbert/Framework/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ public function url($name, $args = [])
$uri = preg_replace('/' . preg_quote($match) . '/', array_get($args, $matches[1][$id], $match), $uri, 1);
}

return home_url() . '/' . $uri;
return home_url('', $this->http->getScheme()) . '/' . $uri;
}

/**
Expand Down

0 comments on commit 74a98ec

Please sign in to comment.