summaryrefslogtreecommitdiff
path: root/src/ui/window.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-11-16 08:33:35 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-11-16 08:33:35 +0200
commita50a01da45a8fb6a4d6ee419fc1ad240b1f0dee5 (patch)
treea9ad9bd8259034a95049f5432599b8497613dd32 /src/ui/window.c
parent25a3f4fc680fbfd5acdd77361194cd6a2244c8cc (diff)
Remember redirected URLs as visited
"visited.txt" will now remember URLs that were redirects, but those are not shown in the UI as part of the history. This fixes the issue where redirected URLs were not being shown as visited links in the UI. Beware if downgrading Lagrange: URLs in the history will get prefixed with "0000 ". Might be a good idea to switch to a forwards compatible format like JSON for these files.
Diffstat (limited to 'src/ui/window.c')
-rw-r--r--src/ui/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index a69dd7db..ba6ee869 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -254,7 +254,7 @@ static iBool handleNavBarCommands_(iWidget *navBar, const char *cmd) {
254 if (equal_Command(cmd, "document.changed")) { 254 if (equal_Command(cmd, "document.changed")) {
255 iInputWidget *url = findWidget_App("url"); 255 iInputWidget *url = findWidget_App("url");
256 const iString *urlStr = collect_String(suffix_Command(cmd, "url")); 256 const iString *urlStr = collect_String(suffix_Command(cmd, "url"));
257 visitUrl_Visited(visited_App(), urlStr); 257 visitUrl_Visited(visited_App(), urlStr, 0);
258 postCommand_App("visited.changed"); /* sidebar will update */ 258 postCommand_App("visited.changed"); /* sidebar will update */
259 setText_InputWidget(url, urlStr); 259 setText_InputWidget(url, urlStr);
260 updateTextCStr_LabelWidget(reloadButton, reloadCStr_); 260 updateTextCStr_LabelWidget(reloadButton, reloadCStr_);