From 82d7e8065203632da7bc11471fd74a858c43fd5c Mon Sep 17 00:00:00 2001 From: Wolfgang Rumpler Date: Fri, 2 Nov 2018 01:14:36 +0100 Subject: [PATCH] change open in browser link for unsplash to the html page closes #43 --- randomwallpaper@iflow.space/sourceAdapter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/randomwallpaper@iflow.space/sourceAdapter.js b/randomwallpaper@iflow.space/sourceAdapter.js index 43edcfe..6161ced 100755 --- a/randomwallpaper@iflow.space/sourceAdapter.js +++ b/randomwallpaper@iflow.space/sourceAdapter.js @@ -172,7 +172,7 @@ var UnsplashAdapter = new Lang.Class({ authorName = data.user.name; authorUrl = encodeURI(data.user.links.html); - imageLinkUrl = encodeURI(data.urls.raw + '&' + utmParameters); + imageLinkUrl = encodeURI(data.links.html); let downloadLocation = data.links.download_location + '?' + clientParam; downloadMessage = Soup.Message.new('GET', downloadLocation); @@ -194,7 +194,7 @@ var UnsplashAdapter = new Lang.Class({ let historyEntry = new HistoryModule.HistoryEntry(authorName, this.sourceName, encodeURI(downloadData.url)); historyEntry.source.sourceUrl = encodeURI(this.sourceUrl + '?' + utmParameters); historyEntry.source.authorUrl = encodeURI(authorUrl + '?' + utmParameters); - historyEntry.source.imageLinkUrl = imageLinkUrl; + historyEntry.source.imageLinkUrl = imageLinkUrl + '?' + utmParameters; callback(historyEntry); } } catch (e) {