code: function (req, bucket, content) {
                  var location = getLocation(req),
                      href = location.origin;
                  
                  // If the objectKey is a folder we want to get a url to the bucket with a prefix param
                  if (content.Key.substr(-1) === '/' && content.Size === 0) {
                      // Merge marker property with existing queries
                      location.search = getMergedSearch(req.query, {
                          prefix: encodeURI(content.Key)
                      });
                      href += location.search;
                  } else {
                  // Since we are getting a link for an item the href must end with slash
                      if (href.substr(-1) !== '/') {
                          href += '/';
                      }
                      href += encodeURI(content.Key);
                  }
                  
                  return href;
              }
docs: Set strict routing that /buckets/test/abc is not the same as /buckets/test/abc/ adding the slash at the end denotes creating a folder and not a file