Skip to content

Commit

Permalink
fix: add basic handle for current path for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Mar 1, 2021
1 parent 3a53fbd commit 687a8e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core_model/src/url_format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ pub fn uri_to_path(url: &str) -> PathBuf {
};

let root = Path::new(Settings::root());
if uri_path.host().is_none() {
return PathBuf::from(url);
}
let mut buf = root.join(PathBuf::from(uri_path.host().unwrap().to_string()));

let segments = uri_path
Expand Down

0 comments on commit 687a8e6

Please sign in to comment.