Skip to content

Commit b89b567

Browse files
committed
Avoid useless search in "search for" button
1 parent 64c38e6 commit b89b567

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

src/Classes/TradeQuery.lua

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,13 +1143,11 @@ you can add them, copy the link here, and press "Price Item" to evaluate the ite
11431143
exactQuery.query.filters.trade_filters.filters.account = { input = itemResult.trader }
11441144

11451145
local exactQueryStr = dkjson.encode(exactQuery)
1146-
1147-
self.tradeQueryRequests:SearchWithQuery(self.pbRealm, self.pbLeague, exactQueryStr, function(_, _)
1148-
end, {callbackQueryId = function(queryId)
1149-
local url = self.hostName.."trade2/search/"..self.pbLeague.."/"..queryId
1150-
Copy(url)
1151-
OpenURL(url)
1152-
end})
1146+
1147+
local encodedUrl = s_format("https://www.pathofexile.com/trade2/search/%s?q=%s", self.pbLeague, urlEncode(exactQueryStr))
1148+
1149+
Copy(encodedUrl)
1150+
OpenURL(encodedUrl)
11531151
end
11541152
end)
11551153

0 commit comments

Comments
 (0)