Merge pull request #1234 with safe hyperlink routing

This commit is contained in:
Hakan Seven committed 2026-09-13 21:03:30 +03:00
commit 84836b0f0c
7 files changed
+159 -28

No files matched your search

+1 -11
View File
@@ -30,17 +30,7 @@ pub fn general_section(entity: &EntityType) -> PropSection {
},
);
// Hyperlink is stored in XDATA under the "PE_URL" application.
let hyperlink = common
.extended_data
.get_record("PE_URL")
.and_then(|r| {
r.values.iter().find_map(|v| match v {
acadrust::xdata::XDataValue::String(s) if !s.is_empty() => Some(s.clone()),
_ => None,
})
})
.unwrap_or_default();
let hyperlink = crate::scene::pe_url_of(entity).unwrap_or_default().to_owned();
let mut section = PropSection {
title: t!("General").into_owned(),