Files
tf_provider/docs/30_registry/javascripts/fix-slash.js
T
2026-06-30 15:45:24 +04:00

8 lines
309 B
JavaScript

(function() {
// Client-side trailing slash enforcer for dumb static servers
var path = window.location.pathname;
if (path.length > 1 && path.substr(-1) !== '/' && path.indexOf('.') === -1) {
window.location.replace(path + '/' + window.location.search + window.location.hash);
}
})();