summaryrefslogtreecommitdiff
path: root/src/ui/documentwidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r--src/ui/documentwidget.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 550777af..beff0f3f 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -4301,6 +4301,9 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd)
4301 else if (equal_Command(cmd, "navigate.parent") && document_App() == d) { 4301 else if (equal_Command(cmd, "navigate.parent") && document_App() == d) {
4302 iUrl parts; 4302 iUrl parts;
4303 init_Url(&parts, d->mod.url); 4303 init_Url(&parts, d->mod.url);
4304 if (endsWith_Rangecc(parts.path, "/index.gmi")) {
4305 parts.path.end -= 9; /* This is the default index page. */
4306 }
4304 /* Remove the last path segment. */ 4307 /* Remove the last path segment. */
4305 if (size_Range(&parts.path) > 1) { 4308 if (size_Range(&parts.path) > 1) {
4306 if (parts.path.end[-1] == '/') { 4309 if (parts.path.end[-1] == '/') {