We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32f9cb1 commit e3ab392Copy full SHA for e3ab392
src/web/rustdoc.rs
@@ -568,10 +568,10 @@ mod test {
568
.create().unwrap();
569
570
let web = env.frontend();
571
- /* TODO: this should work even without a trailing slash
+
572
let redirect = latest_version_redirect("/dummy/0.1.0/x86_64-pc-windows-msvc/dummy", web)?;
573
- assert_eq!(redirect, "/dummy/0.2.0/x86_64-pc-windows-msvc/dummy");
574
- */
+ assert_eq!(redirect, "/dummy/0.2.0/x86_64-pc-windows-msvc/dummy/index.html");
575
let redirect = latest_version_redirect("/dummy/0.1.0/x86_64-pc-windows-msvc/dummy/", web)?;
576
assert_eq!(redirect, "/dummy/0.2.0/x86_64-pc-windows-msvc/dummy/index.html");
577
0 commit comments