Commit 20eb8edf authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

All resources should have a URL

parent 2b515808
......@@ -241,7 +241,7 @@ QString AbstractResource::categoryDisplay() const
QUrl AbstractResource::url() const
{
const QString asid = appstreamId();
return asid.isEmpty() ? QUrl() : QUrl(QStringLiteral("appstream://") + asid);
return asid.isEmpty() ? QUrl(backend()->name() + QStringLiteral("://") + packageName()) : QUrl(QStringLiteral("appstream://") + asid);
}
QString AbstractResource::displayOrigin() const
......
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