summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
Diffstat (limited to 'settings')
-rw-r--r--settings/js/apps.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js
index 04fe99636cb..332c09f150e 100644
--- a/settings/js/apps.js
+++ b/settings/js/apps.js
@@ -104,7 +104,12 @@ OC.Settings.Apps = OC.Settings.Apps || {
if (app.internal === false) {
page.find('span.score').show();
page.find('p.appstore').show();
- page.find('a#appstorelink').attr('href', 'http://apps.owncloud.com/content/show.php?content=' + app.id);
+ var link = page.find('a#appstorelink');
+ if(app.ocsid) {
+ link.attr('href', 'https://apps.owncloud.com/content/show.php?content=' + app.ocsid);
+ } else {
+ link.hide();
+ }
page.find('small.externalapp').hide();
} else {
page.find('p.appslink').hide();