Ports tab in codespaces does not redirect correctly

In codespaces, I have a webapp that is running in the codespaces container. This webapp exposes port 8080 and shows up correctly in the Ports tab. I could click on the globe address and this will redirect me to the webapp. I do have to manually add to the end of the path another segment like …githubpreview.dev/application because the webapp required it.

This workflow worked before but now, when i go this route, as soon as a append the /application segment, i get redirected to https://localhost/application. I’m not sure if this is something that worked previously but was insecure and so it changed(and i need to update to make it work again), or if this is something that should still work.
Any help would be greatly appreciated.