Skip to content

Commit

Permalink
Merge pull request #50 from sourcegraph/fs/redirect-home
Browse files Browse the repository at this point in the history
Redirect root directory to sourcegraph.com/start
  • Loading branch information
francisschmaltz authored Oct 31, 2018
2 parents 029eee4 + 52c82b8 commit 13a42f5
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 19 deletions.
28 changes: 14 additions & 14 deletions website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 16 additions & 4 deletions website/src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,22 +96,34 @@ export default class Footer extends React.Component<any, any> {
<input type="checkbox" />
<ul>
<li>
<Link to="/#search-datacenter" onClick={this.codeSearchClicked}>
<Link
to="https://sourcegraph.com/start#search-datacenter"
onClick={this.codeSearchClicked}
>
Code Search
</Link>
</li>
<li>
<Link to="/#intelligence-ntegrations" onClick={this.codeIntelligenceClicked}>
<Link
to="https://sourcegraph.com/start#intelligence-ntegrations"
onClick={this.codeIntelligenceClicked}
>
Code Intelligence
</Link>
</li>
<li>
<Link to="/#search-datacenter" onClick={this.dataCenterClicked}>
<Link
to="https://sourcegraph.com/start#search-datacenter"
onClick={this.dataCenterClicked}
>
Data Center
</Link>
</li>
<li>
<Link to="/#intelligence-integrations" onClick={this.integrationsClicked}>
<Link
to="https://sourcegraph.com/start#intelligence-integrations"
onClick={this.integrationsClicked}
>
Integrations
</Link>
</li>
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default class Header extends React.Component<HeaderProps, any> {
return (
<nav className="header navbar navbar-light navbar-expand-md">
<div className="container-fluid">
<a className="navbar-brand" href="/">
<a className="navbar-brand" href="https://sourcegraph.com/start">
<img src="/sourcegraph/logo.svg" alt="logo" />
</a>
<button
Expand Down
2 changes: 2 additions & 0 deletions website/static/_redirects
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/ https://sourcegraph.com/start 301

/blog/sourecgraph-liveblogging-at-gophercon-2018 /blog/sourcegraph-liveblogging-at-gophercon-2018 301
/go/sourcegraph-liveblogging-at-gophercon-2018-go /blog/sourcegraph-liveblogging-at-gophercon-2018 301
/go/go-in-debian /go/gophercon-2018-go-in-debian/ 301
Expand Down

0 comments on commit 13a42f5

Please sign in to comment.