I’m having an issue when browsing the App Store pages on my instance where it renders all the categories but then any category that I pick shows no apps. I’m running v13.0.0.3 (alpha) for testing and have verified the apps.json and categories.json files are populated correctly on the data directory.
Debugging through the code I notice that when the route (AppSettings#listApps) invokes : AppSettingsController's public function listApps($category = ''), the category parameter is empty even though I see it being passed in the URL: http://localhost:8080/index.php/settings/apps?category=auth
Any idea why the router would be discarding the parameter or that wouldn’t be making to the controller?
I figured out what my problem was. In my config I had the htaccess.RewriteBase config key set to / so I wouldn’t see the index.php on the URLs, alongside the other relevant configs, and apparently the rewrite rule it generates doesn’t include the QSA flag, so I had to change that in Setup.php:
The missing QSA flag is exactly the issue. When htaccess.RewriteBase is set, the generated rewrite rule drops query strings by default. Adding QSA to the RewriteRule passes them through correctly to the controller.
Also worth checking your iOS or mobile browser behavior if you test on device, sometimes cached rewrite rules cause the same symptom even after the fix. A quick cache clear usually sorts it out.