Adventure Game Studio

AGS Development => Site & Forum Reports => Topic started by: arj0n on Sat 06/11/2021 20:02:22

Title: game search broken?
Post by: arj0n on Sat 06/11/2021 20:02:22
I tried to search up Heartland deluxe, which does exist in the db (https://www.adventuregamestudio.co.uk/site/games/game/813-heartland-deluxe), but no results.
instead it leads to: https://www.adventuregamestudio.co.uk
Any search seem to result this way.

Repro:
Title: Re: game search broken?
Post by: AGA on Mon 08/11/2021 17:41:49
Thanks for the report.  Two separate, but related issues.  Browsers have been getting more strict recently about CORS (https://en.wikipedia.org/wiki/Cross-origin_resource_sharing).  Both the live search JavaScript and search page PHP were rejecting the searches because they were coming from the non-www version of the site.  A minor tweak to both seems to have fixed it.