From ca7d0dfe8482b51d25ca5586d38b1edf36a9baeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Orzech?= Date: Sat, 17 Jan 2026 22:32:42 +0000 Subject: [PATCH] fix: Update Torn.com item market URLs to new format. --- MacTorn/MacTorn/Views/WatchlistView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MacTorn/MacTorn/Views/WatchlistView.swift b/MacTorn/MacTorn/Views/WatchlistView.swift index c7e607e..99408cc 100644 --- a/MacTorn/MacTorn/Views/WatchlistView.swift +++ b/MacTorn/MacTorn/Views/WatchlistView.swift @@ -86,7 +86,7 @@ struct WatchlistView: View { } else if !appState.watchlistItems.isEmpty { ForEach(appState.watchlistItems) { item in WatchlistPriceRow(item: item) { - openURL("https://www.torn.com/imarket.php#/p=shop&step=shop&type=&searchname=\(item.name.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) ?? item.name)") + openURL("https://www.torn.com/page.php?sid=ItemMarket#/market/view=item&itemID=\(item.id)") } onRemove: { appState.removeFromWatchlist(item.id) } @@ -98,7 +98,7 @@ struct WatchlistView: View { // Quick Market Links HStack(spacing: 8) { ActionButton(title: "Item Market", icon: "bag.fill", color: .blue) { - openURL("https://www.torn.com/imarket.php") + openURL("https://www.torn.com/page.php?sid=ItemMarket") } ActionButton(title: "Points", icon: "star.fill", color: .orange) {