Skip to content

Commit f74b8c5

Browse files
authored
Making link to work always as an absolute URL (#300)
* absolute_link_update * absolute_link_refactor
1 parent 8bfcc1b commit f74b8c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/LicenseText.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@ export default {
117117
},
118118
workProps() {
119119
const workAttrs = {}
120-
const { workTitle, workUrl } = this.attributionDetails
120+
const { workTitle } = this.attributionDetails
121121
if (workTitle) {
122122
workAttrs.property = 'dct:title'
123123
}
124-
if (workUrl) {
125-
workAttrs.href = workUrl
124+
if (this.workUrl) {
125+
workAttrs.href = this.workUrl
126126
workAttrs.rel = 'cc:attributionURL noopener noreferrer'
127127
workAttrs.target = '_blank'
128128
}

0 commit comments

Comments
 (0)