Skip to content

Commit b8fe4ca

Browse files
authored
Update footer (ExpediaGroup#414)
1 parent 7a668d3 commit b8fe4ca

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

website/core/Footer.js

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,13 @@
88
const React = require('react');
99

1010
class Footer extends React.Component {
11-
docUrl(doc, language) {
12-
const baseUrl = this.props.config.baseUrl;
13-
const docsUrl = this.props.config.docsUrl;
14-
const docsPart = `${docsUrl ? `${docsUrl}/` : ''}`;
15-
const langPart = `${language ? `${language}/` : ''}`;
16-
return `${baseUrl}${docsPart}${langPart}${doc}`;
17-
}
1811

19-
pageUrl(doc, language) {
12+
docUrl(doc, language) {
2013
const baseUrl = this.props.config.baseUrl;
21-
return baseUrl + (language ? `${language}/` : '') + doc;
14+
const docsUrl = this.props.config.docsUrl;
15+
const docsPart = `${docsUrl ? `${docsUrl}/` : ''}`;
16+
const langPart = `${language ? `${language}/` : ''}`;
17+
return `${baseUrl}${docsPart}${langPart}${doc}`;
2218
}
2319

2420
render() {
@@ -35,12 +31,7 @@ class Footer extends React.Component {
3531
</a>
3632
<div>
3733
<h5>Docs</h5>
38-
<a href={this.docUrl('doc-main.html')}>
39-
Main Page
40-
</a>
41-
<a href={this.docUrl('getting-started.html')}>
42-
Getting Started
43-
</a>
34+
<a href={this.docUrl('getting-started.html')}>Getting Started</a>
4435
</div>
4536
</section>
4637

@@ -50,4 +41,4 @@ class Footer extends React.Component {
5041
}
5142
}
5243

53-
module.exports = Footer;
44+
module.exports = Footer;

0 commit comments

Comments
 (0)