We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ab1348 commit c09d0c4Copy full SHA for c09d0c4
Userland/Libraries/LibManual/Node.cpp
@@ -22,6 +22,12 @@ ErrorOr<NonnullRefPtr<PageNode const>> Node::try_create_from_query(Vector<String
22
if (query_parameters.size() > 2)
23
return Error::from_string_literal("Queries longer than 2 strings are not supported yet");
24
25
+ if (query_parameters.size() == 1 && query_parameters[0].starts_with("help://"sv)) {
26
+ auto help_url = URL::create_with_url_or_path(query_parameters[0].trim("/"sv, TrimMode::Right));
27
+ auto node_from_url = TRY(Manual::Node::try_find_from_help_url(help_url));
28
+ return *node_from_url->document();
29
+ }
30
+
31
auto query_parameter_iterator = query_parameters.begin();
32
33
if (query_parameter_iterator.is_end())
0 commit comments