Fix app benchmark links

This commit is contained in:
Sam Carlton 2020-12-28 15:53:06 -06:00
parent 63c9f10b86
commit 88648556b3
2 changed files with 11 additions and 2 deletions

View file

@ -60,6 +60,8 @@
<script>
import parseGithubDate from '~/helpers/parse-github-date'
import { getAppEndpoint } from '~/helpers/app-derived.js'
import LinkButton from '~/components/link-button.vue'
import AllUpdatesSubscribe from '~/components/all-updates-subscribe.vue'
import VideoRow from '~/components/video/row.vue'
@ -96,7 +98,7 @@ export default {
// console.log('video', video)
return {
...video,
endpoint: `${slug}/benchmarks#${video.id}`
endpoint: `${getAppEndpoint(app)}/benchmarks#${video.id}`
}
})
}

View file

@ -99,6 +99,7 @@
</template>
<script>
import { getAppEndpoint } from '~/helpers/app-derived.js'
import VideoRow from '~/components/video/row.vue'
import LinkButton from '~/components/link-button.vue'
@ -130,7 +131,13 @@ export default {
return {
slug,
app,
relatedVideos
relatedVideos: relatedVideos.map(video => {
// console.log('video', video)
return {
...video,
endpoint: `${getAppEndpoint(app)}/benchmarks#${video.id}`
}
})
}
},
head() {