Hello,
I have configured a static website with a Cloud Bucket and and Cloud Load Balancer that serves a bucket backend. It works well.
The problem I have though, is that the design currently uses multiple URLs for the same resource, see:
https://cloud.google.com/storage/docs/static-website#examples
So, basically, with an index page index.html, the routing is like this:
URL | Redirection | Resource served |
/contact/ | None | /contact/index.html |
/contact/index.html | None | /contact/index.html |
/contact | /contact/index.html | None |
There are several things I do not like here:
What I would like is to have only one URL to access the resource, and an option to choose if it is the route with the trailing slash or not.
So, with the trailing slash option off, the routing would look like this:
URL | Redirection | Resource served |
/contact | None | /contact/index.html |
/contact/ | /contact | None |
/contact/index.html | /contact | None |
Any chance you could add this option?
EDIT: Fixed resource served for clarity
Hello, were you able to fix this?
What I have done is to add a trailing "/" to all my internal URLs to avoid any redirection to the */index.html page. It's not perfect but it's OKish.