no need to check for ext before redirect
This commit is contained in:
parent
5275f54be0
commit
874219f22f
1 changed files with 0 additions and 1 deletions
|
@ -168,7 +168,6 @@ async fn render(
|
|||
|
||||
// Redirect to ".md" version if requested path matches a .md file without the extension
|
||||
if !full_path.exists()
|
||||
&& full_path.extension().is_none()
|
||||
&& Path::new(&format!("{}.md", full_path.to_str().unwrap())).exists()
|
||||
{
|
||||
return Ok(HttpResponse::Found()
|
||||
|
|
Loading…
Reference in a new issue