1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[session] Set referrer based on ses->doc_view not current_frame

This commit is contained in:
Witold Filipczyk 2023-09-29 20:18:27 +02:00
parent 8596d604cc
commit 789be0be41

View File

@ -870,7 +870,7 @@ request_additional_file(struct session *ses, const char *name, struct uri *uri,
static void
load_additional_file(struct file_to_load *ftl, cache_mode_T cache_mode)
{
struct document_view *doc_view = current_frame(ftl->ses);
struct document_view *doc_view = ftl->ses->doc_view;
struct uri *referrer = doc_view && doc_view->document
? doc_view->document->uri : NULL;