if (req.url ~ "/views/([^/]*)") {
  log digest.base64url_decode(re.group.1);
}

# The path segment in this demo is encoded like this
log digest.base64url_nopad({"from=06/07/2013 query="Καλώς ορίσατε""});

# A normal base64 encoding of the same text would include
# characters invalid in a URL path
log digest.base64({"from=06/07/2013 query="Καλώς ορίσατε""});