module.exports = function () {
  return function (uri) {
    var uriLabel = '';
    if (uri !== undefined && uri !== '') {
      var lastSlash = uri.lastIndexOf('/');
      var lastHash = uri.lastIndexOf('#');
      uriLabel = uri.substr(Math.max(lastSlash, lastHash) + 1).replace(/\_/g, ' ');
    }
    return uriLabel;
  };
};

Fix broken detail section due to missing URI label filter.
Fix broken detail section due to missing URI label
filter.

