1 parent
e086d6765b
commit
10a63d07e2
3 files changed
+38
-18
No files matched your search
@@ -163,8 +163,11 @@ pub fn Link(props: LinkProps) -> Element {
|
||||
NavigationTarget::Internal(url) => url.clone(),
|
||||
NavigationTarget::External(route) => route.clone(),
|
||||
};
|
||||
// Add the history's prefix to the href for use in the rsx
|
||||
let full_href = router.prefix().unwrap_or_default() + &href;
|
||||
// Add the history's prefix to internal hrefs for use in the rsx
|
||||
let full_href = match &to {
|
||||
NavigationTarget::Internal(url) => router.prefix().unwrap_or_default() + url,
|
||||
NavigationTarget::External(route) => route.clone(),
|
||||
};
|
||||
|
||||
let mut class_ = String::new();
|
||||
if let Some(c) = class {
|
||||
|
||||
Reference in new issue
Block a user