Skip to content

Commit 57de4ff

Browse files
authored
Always use Titania URL setting for route generation. Close #382
1 parent 7497996 commit 57de4ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

controller/helper.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ public function route($route, array $params = array(), $is_amp = true, $session_
131131
{
132132
$route = parent::route($route, $params, $is_amp, $session_id, $reference_type);
133133

134-
return ($this->config->offsetGet('cookie_secure') && strpos($route, 'http://') === 0) ? 'https://' . substr($route, 7) : $route;
134+
$full_route = ($this->config->offsetGet('cookie_secure') && strpos($route, 'http://') === 0) ? 'https://' . substr($route, 7) : $route;
135+
136+
return $this->get_real_url($full_route);
135137
}
136138

137139
/**

0 commit comments

Comments
 (0)