diff --git a/README.md b/README.md
index b93ac5b..b1353e0 100644
--- a/README.md
+++ b/README.md
@@ -266,6 +266,10 @@ There will always be more work to do here. ;-)
### Updates
+#### v0.74 7/5/17 by DW
+
+If a request comes in for domain.com/hello and it's a directory, redirect to domain.com/hello/.
+
#### v0.73 6/17/17 by DW
Replaced daveopml with opmltojs, a new package that builds on the xml2js package.
diff --git a/pagepark.js b/pagepark.js
index 095570e..5f1461b 100644
--- a/pagepark.js
+++ b/pagepark.js
@@ -1,4 +1,4 @@
-var myVersion = "0.73c", myProductName = "PagePark";
+var myVersion = "0.74a", myProductName = "PagePark";
/* The MIT License (MIT)
Copyright (c) 2014-2015 Dave Winer
@@ -510,11 +510,13 @@ function handleHttpRequest (httpRequest, httpResponse) {
if (!serveRedirect (lowerpath, config)) { //7/30/15 by DW -- it wasn't a redirect
if (stats.isDirectory ()) {
if (!utils.endsWith (f, "/")) {
- f += "/";
+ returnRedirect (httpRequest.url + "/", false); //7/5/17 by DW
+ }
+ else {
+ findSpecificFile (f, pageparkPrefs.indexFilename, function (findex) {
+ serveFile (findex, config);
+ });
}
- findSpecificFile (f, pageparkPrefs.indexFilename, function (findex) {
- serveFile (findex, config);
- });
}
else {
serveFile (f, config);