Enhancement request for automatically adding Trailing Slash of Azure Storage static website

Microsoft

For end-users, they don't care whether URL adding trailing slash or not though, Azure Storage static website strictly treats the trailing slash. Therefore the website's behavior is different when adding traling slash or not, which relats to users confusion. We request to add a feature to add traling slash end of an URL when users access to the URL without traling slash.

 

For example, there is the following directory structure in $web:

 

$tree
.
├── html
│   ├── css
│   │   └── sample.css
│   └── test.html

 

Then, specify a css file path in the test.html such as:

 

<link rel="stylesheet" href="./css/sample.css"> 

 

In this case, when a user access to the website without Trailing slash, the test.html cannot fined sample.css under the css directory as follows:

TKane_0-1631689128035.png

 

Whilst, when a user access to the website with Trailing slash, the html correctly calls sample.css under the css directory as follows:

TKane_1-1631689212531.png

 

As the above, the behavior is different whetner adding "/" end of the URL or not. 

 

In addition, could you add a document about Trailing Slash behavior of Azure Storage static website.

 

We appreciate it if you go over these requests.

 

Thanks.

 

 

1 Reply
No idea but what if you create one more directory under HTML directory name "/" and then test.html.