File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 32
32
<b-dropdown-item active href =" /" >
33
33
Local copy
34
34
</b-dropdown-item >
35
- <b-dropdown-item :href =" prodURL " >
35
+ <b-dropdown-item :href =" url " >
36
36
Latest (v{{ version }})
37
37
</b-dropdown-item >
38
38
</template >
39
39
<template v-else >
40
- <b-dropdown-item active :href =" prodURL " >
40
+ <b-dropdown-item active :href =" url " >
41
41
Latest (v{{ version }})
42
42
</b-dropdown-item >
43
- <b-dropdown-item :href = " devURL " rel = " nofollow " >
44
- Development
43
+ <b-dropdown-item to = " /docs/reference/changelog " >
44
+ Changelog
45
45
</b-dropdown-item >
46
46
</template >
47
47
</b-nav-item-dropdown >
82
82
</template >
83
83
84
84
<script >
85
- import { BASE_URL , BASE_URL_DEV } from ' ~/constants'
85
+ import { BASE_URL } from ' ~/constants'
86
86
import { version } from ' ~/content'
87
87
import BvBadge from ' ~/components/bv-badge'
88
88
import OpencollectiveLogo from ' ~/components/opencollective-logo'
@@ -100,12 +100,9 @@ export default {
100
100
}
101
101
},
102
102
computed: {
103
- prodURL () {
103
+ url () {
104
104
return BASE_URL
105
105
},
106
- devURL () {
107
- return BASE_URL_DEV
108
- },
109
106
dropdownText () {
110
107
if (this .isLocal ) {
111
108
return ' Local Copy'
@@ -119,7 +116,7 @@ export default {
119
116
},
120
117
methods: {
121
118
isLocalHost () {
122
- const host = window .location .host || ' '
119
+ const host = window .location .hostname || ' '
123
120
return host === ' localhost' || host === ' 127.0.0.1'
124
121
}
125
122
}
Original file line number Diff line number Diff line change 1
1
export const BASE_URL = 'https://bootstrap-vue.github.io/bootstrap-vue/'
2
- export const BASE_URL_DEV = 'https://dev.bootstrap-vue.org'
3
2
4
3
export const GA_TRACKING_ID = 'UA-89526435-1'
5
4
You can’t perform that action at this time.
0 commit comments