Commit bce10674 authored by Laurent Wouters's avatar Laurent Wouters
Browse files

[fix] Use observable content URL as primary topic if none can be inferred from headers

parent 5b488e42caee
......@@ -562,7 +562,7 @@ export function observeContent(
])
);
let observations: ResourceObservedData = {
primaryTopic: primary == null ? "" : primary,
primaryTopic: primary == null ? observable.url : primary,
url: observable.url,
sources: [source]
};
......@@ -589,7 +589,8 @@ export function observeContent(
}
let sources = detectDataOnLinks(links);
let observations: ResourceObservedData = {
primaryTopic: primary == null || primary == undefined ? "" : primary,
primaryTopic:
primary == null || primary == undefined ? observable.url : primary,
url: observable.url,
sources: sources
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment