From 434ce282ce089809beec1445fc765d9d7b9c1871 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Thu, 29 Oct 2020 20:40:08 +0100 Subject: [PATCH] [uri] Try to get frame uri with #fragment. Refs #75 --- src/dialogs/menu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dialogs/menu.c b/src/dialogs/menu.c index 64d0b67af..361414655 100644 --- a/src/dialogs/menu.c +++ b/src/dialogs/menu.c @@ -826,7 +826,8 @@ pass_uri_to_command(struct session *ses, struct document_view *doc_view, switch (type) { case PASS_URI_FRAME: - uri = get_uri_reference(doc_view->document->uri); + uri = get_uri_reference((doc_view->vs && doc_view->vs->uri) + ? doc_view->vs->uri : doc_view->document->uri); break; case PASS_URI_LINK: