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

[uri] pass to tab-external-command uri with #fragment . Refs #75

This commit is contained in:
Witold Filipczyk 2020-10-29 19:21:14 +01:00
parent 8ad7d68b28
commit d1f8248a0c

View File

@ -841,7 +841,11 @@ pass_uri_to_command(struct session *ses, struct document_view *doc_view,
}
default:
case PASS_URI_TAB:
uri = get_uri_reference(ses->doc_view->document->uri);
uri = have_location(ses) ? cur_loc(ses)->vs.uri : ses->loading_uri;
if (!uri) {
return FRAME_EVENT_OK;
}
uri = get_uri_reference(uri);
};
items = new_menu(FREE_LIST | FREE_TEXT | FREE_DATA | NO_INTL);