My symfony5 application serves up a microsoft azure SSO link up front, and it works great through the browser. When a user opts to add my app to their iOS homescareen however, there is a problem.
Here is my htaccess config
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ public/$1
This makes the public/ level of my folder structure invisible, so that URIs from symfony look like this
https://www.myapp.com/node
rather than this
https://www.myapp.com/public/node
When ths microsoft SSO is used through a browser, a successful login attempt comes back to the route
https://www.myapp.com/login_microsoft_check
BUT, if I add my app to homescreen on an iOS device, for some reason my app tells the microsoft SSO interface to return a successful sign-in to this URI instead:
https://www.myapp.com/public/login_microsoft_check
What is going on here? Why is my htaccess rewrite rule not applied when in A2HS/PWA mode? My code is not aware of client A2HS or not, this is likely an htaccess configuration issue. On my end the same code is run regardless of request coming from an A2HS client or normal web browser client.