aboutsummaryrefslogtreecommitdiff
path: root/QSThingsPlugin/Actions/SearchThingsAction.m
diff options
context:
space:
mode:
Diffstat (limited to 'QSThingsPlugin/Actions/SearchThingsAction.m')
-rw-r--r--QSThingsPlugin/Actions/SearchThingsAction.m6
1 files changed, 2 insertions, 4 deletions
diff --git a/QSThingsPlugin/Actions/SearchThingsAction.m b/QSThingsPlugin/Actions/SearchThingsAction.m
index 9b042b3..9f941e7 100644
--- a/QSThingsPlugin/Actions/SearchThingsAction.m
+++ b/QSThingsPlugin/Actions/SearchThingsAction.m
@@ -9,10 +9,8 @@ NS_ASSUME_NONNULL_BEGIN
NSString *contents = [directObject displayName];
if (contents) {
- NSString *urlString = [NSString stringWithFormat:@"things:///search?query=%@", contents];
- NSURL *url = [NSURL URLWithString:urlString];
-
- [[NSWorkspace sharedWorkspace] openURL:url];
+ NSDictionary *parameters = @{@"query": contents};
+ [ThingsHelper callRoute:ThingsURLRouteSearch withParameters:parameters];
} else {
NSLog(@"Could not get the text of the Things object.");
}