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 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 >
8282</template >
8383
8484<script >
85- import { BASE_URL , BASE_URL_DEV } from ' ~/constants'
85+ import { BASE_URL } from ' ~/constants'
8686import { version } from ' ~/content'
8787import BvBadge from ' ~/components/bv-badge'
8888import 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 }
Original file line number Diff line number Diff line change 11export const BASE_URL = 'https://bootstrap-vue.github.io/bootstrap-vue/'
2- export const BASE_URL_DEV = 'https://dev.bootstrap-vue.org'
32
43export const GA_TRACKING_ID = 'UA-89526435-1'
54
You can’t perform that action at this time.
0 commit comments