From 5ffa86d1a4c0da2b698ca5d0bc9b076f5844ad0b Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Wed, 14 Aug 2024 23:48:37 +0200 Subject: [PATCH] Fix building the manual using 0.16.0 --- docs/src/docs/url.inko | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/docs/url.inko b/docs/src/docs/url.inko index f1fd86bd8..429bc906a 100644 --- a/docs/src/docs/url.inko +++ b/docs/src/docs/url.inko @@ -3,7 +3,7 @@ import wobsite.url (relative_to_absolute) fn link_from(page: ref Page, to: String) -> String { if page.url == '/' { - to.strip_prefix('/') + to.strip_prefix('/').or_panic('the target URL must start with a /') } else { let mut steps = page.url.split('/').select(fn (v) { v != '' }).count let to_abs = to.starts_with?('/')