summaryrefslogtreecommitdiff
path: root/src/gmdocument.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-07-30 13:28:43 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-07-30 13:28:43 +0300
commita733f5c5a934b8c793f1ca398dc0e9b62a4dccf9 (patch)
tree5a2de77c9e31b1b66bc7d4df773d1566b2c018ec /src/gmdocument.c
parent9eb27c0930017dd60d27d2e7f24561c369f5ac65 (diff)
GmDocument: Check absolute URLs for visit times
Diffstat (limited to 'src/gmdocument.c')
-rw-r--r--src/gmdocument.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c
index bd54e6e5..5e14c55b 100644
--- a/src/gmdocument.c
+++ b/src/gmdocument.c
@@ -208,7 +208,8 @@ static iRangecc addLink_GmDocument_(iGmDocument *d, iRangecc line, iGmLinkId *li
208 } 208 }
209 } 209 }
210 /* Check if visited. */ { 210 /* Check if visited. */ {
211 link->when = urlVisitTime_History(history_App(), &link->url); 211 link->when = urlVisitTime_History(history_App(), absoluteUrl_String(&d->url,
212 &link->url));
212 if (isValid_Time(&link->when)) { 213 if (isValid_Time(&link->when)) {
213 link->flags |= visited_GmLinkFlag; 214 link->flags |= visited_GmLinkFlag;
214 } 215 }