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

%3CLINGO-SUB%20id%3D%22lingo-sub-2751711%22%20slang%3D%22en-US%22%3EEnhancement%20request%20for%20automatically%20adding%20Trailing%20Slash%20of%20Azure%20Storage%20static%20website%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2751711%22%20slang%3D%22en-US%22%3E%3CP%3EFor%20end-users%2C%20they%20don't%20care%20whether%20URL%20adding%20trailing%20slash%20or%20not%20though%2C%20Azure%20Storage%20static%20website%20strictly%20treats%20the%20trailing%20slash.%20Therefore%20the%20website's%20behavior%20is%20different%20when%20adding%20traling%20slash%20or%20not%2C%20which%20relats%20to%20users%20confusion.%20We%20request%20to%20add%20a%20feature%20to%20add%20traling%20slash%20end%20of%20an%20URL%20when%20users%20access%20to%20the%20URL%20without%20traling%20slash.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20example%2C%20there%20is%20the%20following%20directory%20structure%20in%20%24web%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3E%24tree%0A.%0A%E2%94%9C%E2%94%80%E2%94%80%20html%0A%E2%94%82%20%20%20%E2%94%9C%E2%94%80%E2%94%80%20css%0A%E2%94%82%20%20%20%E2%94%82%20%20%20%E2%94%94%E2%94%80%E2%94%80%20sample.css%0A%E2%94%82%20%20%20%E2%94%94%E2%94%80%E2%94%80%20test.html%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThen%2C%20specify%20a%20css%20file%20path%20in%20the%20test.html%20such%20as%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%3CLINK%20rel%3D%22stylesheet%22%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fcss%2Fsample.css%22%20%2F%3E%20%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20this%20case%2C%20when%20a%20user%20access%20to%20the%20website%20without%20Trailing%20slash%2C%20the%20test.html%20cannot%20fined%20sample.css%20under%20the%20css%20directory%20as%20follows%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22TKane_0-1631689128035.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F310505iEFAF44A1E3F99136%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22TKane_0-1631689128035.png%22%20alt%3D%22TKane_0-1631689128035.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhilst%2C%26nbsp%3Bwhen%20a%20user%20access%20to%20the%20website%20with%20Trailing%20slash%2C%20the%20html%20correctly%20calls%20sample.css%20under%20the%20css%20directory%20as%20follows%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22TKane_1-1631689212531.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F310506iD09EB0E7C8552AB0%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22TKane_1-1631689212531.png%22%20alt%3D%22TKane_1-1631689212531.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20the%20above%2C%20the%20behavior%20is%20different%20whetner%20adding%20%22%2F%22%20end%20of%20the%20URL%20or%20not.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20addition%2C%20could%20you%20add%20a%20document%20about%20Trailing%20Slash%20behavior%20of%20Azure%20Storage%20static%20website.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20appreciate%20it%20if%20you%20go%20over%20these%20requests.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
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.