Vilsol / timeless-jewels

A timeless jewel calculator and skill tree for Path of Exile
https://Vilsol.github.io/timeless-jewels/
GNU General Public License v3.0
98 stars 38 forks source link

[Feature request] Trade league selection #40

Open Darestr opened 1 week ago

Darestr commented 1 week ago

currently in /frontend/src/lib/skill_tree.ts is being the search generated with current league which is sometimes bugging

export const openTrade = (jewel: number, conqueror: string, results: SearchWithSeed[]) => {
  const url = new URL('https://www.pathofexile.com/trade/search/Necropolis');
  url.searchParams.set('q', JSON.stringify(constructQuery(jewel, conqueror, results)));
  window.open(url, '_blank');
};

Would it be possible to change the link from "https://www.pathofexile.com/trade/search/Necropolis"

to something like "https://www.pathofexile.com/trade/search/{league}"

and make an option to select custom leagues based on result from trade API? https://www.pathofexile.com/developer/docs/reference#leagues

takoz53 commented 4 days ago

Just was about to open this issue. Necro Settlers is not accessible and user needs to manually always change for every trade. It's really rough. Would be nice of change