diff --git a/libimagentrylink/src/external.rs b/libimagentrylink/src/external.rs index b566104e..e1bc2535 100644 --- a/libimagentrylink/src/external.rs +++ b/libimagentrylink/src/external.rs @@ -90,7 +90,7 @@ pub trait ExternalLinker : InternalLinker { /// Check whether the StoreId starts with `/link/external/` pub fn is_external_link_storeid(id: &StoreId) -> bool { debug!("Checking whether this is a /link/external/*: '{:?}'", id); - id.starts_with("/link/external/") + id.parent().map(|par| par.ends_with("/link/external")).unwrap_or(false) } fn get_external_link_from_file(entry: &FileLockEntry) -> Result {