mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-05 07:54:14 +00:00
set is external on uri scheme change
This commit is contained in:
parent
18d0da99f2
commit
2d750d0572
@ -42,10 +42,7 @@ impl Link {
|
||||
match Uri::parse(&resolved_str, UriFlags::NONE) {
|
||||
Ok(resolved_uri) => {
|
||||
// Change external status
|
||||
is_external = Some(
|
||||
resolved_uri.host() != base_uri.host()
|
||||
|| resolved_uri.port() != base_uri.port(),
|
||||
);
|
||||
is_external = Some(resolved_uri.scheme() != base_uri.scheme());
|
||||
|
||||
// Result
|
||||
resolved_uri
|
||||
|
Loading…
x
Reference in New Issue
Block a user