Merge branch 'master' into intigrate-collect-assets
This commit is contained in:
1 parent
ffb5de91d1
commit
f976e08f71
379 files changed
+1962
-13517
No files matched your search
@@ -139,7 +139,7 @@ impl<R: Routable> WebHistory<R> {
|
||||
);
|
||||
|
||||
let current_route = myself.current_route();
|
||||
log::trace!("initial route: {:?}", current_route);
|
||||
tracing::trace!("initial route: {:?}", current_route);
|
||||
let current_url = current_route.to_string();
|
||||
let state = myself.create_state(current_route);
|
||||
let _ = replace_state_with_url(&myself.history, &state, Some(¤t_url));
|
||||
@@ -195,14 +195,10 @@ where
|
||||
<R as std::str::FromStr>::Err: std::fmt::Display,
|
||||
{
|
||||
fn route_from_location(&self) -> R {
|
||||
R::from_str(
|
||||
&self
|
||||
.window
|
||||
.location()
|
||||
.pathname()
|
||||
.unwrap_or_else(|_| String::from("/")),
|
||||
)
|
||||
.unwrap_or_else(|err| panic!("{}", err))
|
||||
let location = self.window.location();
|
||||
let path = location.pathname().unwrap_or_else(|_| "/".into())
|
||||
+ &location.search().unwrap_or("".into());
|
||||
R::from_str(&path).unwrap_or_else(|err| panic!("{}", err))
|
||||
}
|
||||
|
||||
fn full_path(&self, state: &R) -> String {
|
||||
|
||||
Reference in new issue
Block a user