Skip to content

Commit 8071b93

Browse files
committed
fix(docs): correct header dropdown
1 parent 864827b commit 8071b93

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

docs/components/header.vue

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@
3232
<b-dropdown-item active href="/">
3333
Local copy
3434
</b-dropdown-item>
35-
<b-dropdown-item :href="prodURL">
35+
<b-dropdown-item :href="url">
3636
Latest (v{{ version }})
3737
</b-dropdown-item>
3838
</template>
3939
<template v-else>
40-
<b-dropdown-item active :href="prodURL">
40+
<b-dropdown-item active :href="url">
4141
Latest (v{{ version }})
4242
</b-dropdown-item>
43-
<b-dropdown-item :href="devURL" rel="nofollow">
44-
Development
43+
<b-dropdown-item to="/docs/reference/changelog">
44+
Changelog
4545
</b-dropdown-item>
4646
</template>
4747
</b-nav-item-dropdown>
@@ -82,7 +82,7 @@
8282
</template>
8383

8484
<script>
85-
import { BASE_URL, BASE_URL_DEV } from '~/constants'
85+
import { BASE_URL } from '~/constants'
8686
import { version } from '~/content'
8787
import BvBadge from '~/components/bv-badge'
8888
import OpencollectiveLogo from '~/components/opencollective-logo'
@@ -100,12 +100,9 @@ export default {
100100
}
101101
},
102102
computed: {
103-
prodURL() {
103+
url() {
104104
return BASE_URL
105105
},
106-
devURL() {
107-
return BASE_URL_DEV
108-
},
109106
dropdownText() {
110107
if (this.isLocal) {
111108
return 'Local Copy'
@@ -119,7 +116,7 @@ export default {
119116
},
120117
methods: {
121118
isLocalHost() {
122-
const host = window.location.host || ''
119+
const host = window.location.hostname || ''
123120
return host === 'localhost' || host === '127.0.0.1'
124121
}
125122
}

docs/constants.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export const BASE_URL = 'https://bootstrap-vue.github.io/bootstrap-vue/'
2-
export const BASE_URL_DEV = 'https://dev.bootstrap-vue.org'
32

43
export const GA_TRACKING_ID = 'UA-89526435-1'
54

0 commit comments

Comments
 (0)