Skip to content

Commit c3ce74e

Browse files
committed
Fix routes
1 parent 6302ea8 commit c3ce74e

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ If you have a translation please read the information on patches.
1414

1515
You can get involved by reporting bugs in the bug tracker (see below) and providing patches/improvements (see above).
1616

17+
### Codespaces
18+
19+
This project can be run in GitHub Codespaces by following the link under port 80 in the `Ports` tab and then navigating to `/app.php/db` in the browser.
20+
21+
If you run Titania in GitHub Codespaces, make sure to update the server name in ACP -> Server Settings -> Domain Name to match the Codespaces URL. Set `Force server URL settings` to `Yes`.
22+
1723
## Bug Tracker
1824

1925
If you find a bug, please submit it to the [Customisations Database](https://github.com/phpbb/customisation-db/issues) bug tracker.

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
/**

controller/manage/manage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function base()
2929
{
3030
if ($page['auth'])
3131
{
32-
redirect($page['url']);
32+
redirect($page['url'], false, true);
3333
}
3434
}
3535

styles/all/template/event/overall_header_head_append.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% if S_IN_TITANIA %}
2-
{% INCLUDECSS '@phpbb_titania/stylesheet.css' %}
2+
{% INCLUDECSS T_TITANIA_THEME_PATH ~ '/stylesheet.css' %}
33
{% if S_PLUPLOAD_EXT %}
44
{% INCLUDECSS T_THEME_PATH ~ '/plupload.css?assets_version=' ~ T_ASSETS_VERSION %}
55
{% endif %}

0 commit comments

Comments
 (0)