protected function getFilename($data)
    {
        $options = [
            'q', 'query_string', 'path_info', 'php_self',
        ];
        $root = $data['data_dir'];

        foreach ($options as $option) {
            if (!array_key_exists($option, $data)) {
                continue;
            }
            $name = $this->translateName($data[$option]);
            if ($name) {
                return $root . '/' . $name . '.md';
            }
        }
    }