Oops, fix Shop Wizard URL!

I'm not sure when TNT changed this, but the Shop Wizard has a new
canonical URL now! The previous one redirects, but it does *not* pass
along query string parameters, so these buttons would correctly go to
the Shop Wizard but not auto-fill the name!

Now, we go directly to the new canonical URL, with query params in hand!
This commit is contained in:
Emi Matchu 2024-05-21 18:00:01 -07:00
parent 73a49c1fec
commit 18076badcd

View file

@ -95,7 +95,7 @@ module ItemsHelper
end
SHOP_WIZARD_URL_TEMPLATE = Addressable::Template.new(
"https://www.neopets.com/market.phtml?type=wizard{&string}"
"https://www.neopets.com/shops/wizard.phtml{?string}"
)
def shop_wizard_url_for(item)
SHOP_WIZARD_URL_TEMPLATE.expand(string: item.name).to_s