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.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 86513368..67fca410 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -4325,6 +4325,9 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd)
4325 set_String(parentUrl, withScheme_String(parentUrl, "gemini")); 4325 set_String(parentUrl, withScheme_String(parentUrl, "gemini"));
4326 stripUrlPort_String(parentUrl); 4326 stripUrlPort_String(parentUrl);
4327 } 4327 }
4328 if (!cmpCase_String(parentUrl, "about:")) {
4329 setCStr_String(parentUrl, "about:about");
4330 }
4328 postCommandf_Root(w->root, "open url:%s", cstr_String(parentUrl)); 4331 postCommandf_Root(w->root, "open url:%s", cstr_String(parentUrl));
4329 } 4332 }
4330 return iTrue; 4333 return iTrue;
@@ -4339,8 +4342,14 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd)
4339 but let's try anyway. */ 4342 but let's try anyway. */
4340 set_String(rootUrl, withScheme_String(rootUrl, "gemini")); 4343 set_String(rootUrl, withScheme_String(rootUrl, "gemini"));
4341 stripUrlPort_String(rootUrl); 4344 stripUrlPort_String(rootUrl);
4342 } 4345 }
4343 postCommandf_Root(w->root, "open url:%s/", cstr_String(rootUrl)); 4346 if (!cmpCase_String(rootUrl, "about:")) {
4347 setCStr_String(rootUrl, "about:about");
4348 }
4349 else {
4350 appendCStr_String(rootUrl, "/");
4351 }
4352 postCommandf_Root(w->root, "open url:%s", cstr_String(rootUrl));
4344 return iTrue; 4353 return iTrue;
4345 } 4354 }
4346 else if (equalWidget_Command(cmd, w, "scroll.moved")) { 4355 else if (equalWidget_Command(cmd, w, "scroll.moved")) {