Overview
Comment:Redirect old categories URLs, fix [c43490ea35a695d1ca18645cc288978dbeaaaec2]
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA3-256: f62707369aabc67b68ebc789af762f4104b5a5ea4def8e44b221cc5b85961bfc
User & Date: bohwaz on 2021-04-05 13:31:10
Other Links: branch diff | manifest | tags
Context
2021-04-05
13:36
Force cache directory mkdir in case it has been hard cleared, fix [084a09bbff324c08102f015692ed98431bef3285] check-in: 1f23b0d518 user: bohwaz tags: dev
13:31
Redirect old categories URLs, fix [c43490ea35a695d1ca18645cc288978dbeaaaec2] check-in: f62707369a user: bohwaz tags: dev
2021-04-02
15:23
Fix absolute links in skriv check-in: a403442fd1 user: bohwaz tags: dev
Changes

Modified src/include/lib/Garradin/Web/Web.php from [a2f7a3c8e7] to [17cc419c70].

194
195
196
197
198
199
200






201
202
203
204
205
206
207

			return;
		}

		if (Config::getInstance()->get('site_disabled')) {
			Utils::redirect(ADMIN_URL);
		}







		$page = null;

		if ($uri == '') {
			$skel = 'index.html';
		}
		elseif (($page = self::getByURI($uri)) && $page->status == Page::STATUS_ONLINE) {







>
>
>
>
>
>







194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213

			return;
		}

		if (Config::getInstance()->get('site_disabled')) {
			Utils::redirect(ADMIN_URL);
		}

		// Redirect old categories
		if (substr($uri, -1) == '/') {
			http_response_code(301);
			Utils::redirect('/' . rtrim($uri, '/'));
		}

		$page = null;

		if ($uri == '') {
			$skel = 'index.html';
		}
		elseif (($page = self::getByURI($uri)) && $page->status == Page::STATUS_ONLINE) {