Skip to content

Commit

Permalink
fix: 🚑 fixed page encodings
Browse files Browse the repository at this point in the history
  • Loading branch information
arctic-hen7 committed Oct 2, 2021
1 parent 698cc4d commit 6d2b7e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/perseus/src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ pub async fn build_template(
};
// Add the current locale to the front of that na dencode it as a URL so we can store a flat series of files
// BUG: insanely nested paths won't work whatsoever if the filename is too long, maybe hash instead?
let full_path_encoded = format!("{}-{}", translator.get_locale(), full_path_without_locale);
let full_path_encoded = format!(
"{}-{}",
translator.get_locale(),
urlencoding::encode(&full_path_without_locale)
);

// Handle static initial state generation
// We'll only write a static state if one is explicitly generated
Expand Down

0 comments on commit 6d2b7e6

Please sign in to comment.