Skip to content

Commit

Permalink
use relative URLs for assets
Browse files Browse the repository at this point in the history
this makes it possible to serve hound off of a different location than
"/".

fixes hound-search#188
closes hound-search#229
  • Loading branch information
Daniel Schauenberg committed Jan 10, 2017
1 parent f95e9a9 commit 81c9d59
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 52 deletions.
4 changes: 2 additions & 2 deletions ui/assets/js/excluded_files.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ var FilterableExcludedFiles = React.createClass({
getInitialState: function() {
var _this = this;
$.ajax({
url: '/api/v1/repos',
url: 'api/v1/repos',
dataType: 'json',
success: function(data) {
_this.setState({ repos: data });
Expand All @@ -103,7 +103,7 @@ var FilterableExcludedFiles = React.createClass({
repo: this.state.repos[repo],
});
$.ajax({
url: '/api/v1/excludes',
url: 'api/v1/excludes',
data: {repo: repo},
type: 'GET',
dataType: 'json',
Expand Down
8 changes: 4 additions & 4 deletions ui/assets/js/hound.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ var Model = {
}

$.ajax({
url: '/api/v1/repos',
url: 'api/v1/repos',
dataType: 'json',
success: function(data) {
_this.repos = data;
Expand Down Expand Up @@ -181,7 +181,7 @@ var Model = {
}

$.ajax({
url: '/api/v1/search',
url: 'api/v1/search',
data: params,
type: 'GET',
dataType: 'json',
Expand Down Expand Up @@ -249,7 +249,7 @@ var Model = {
});

$.ajax({
url: '/api/v1/search',
url: 'api/v1/search',
data: params,
type: 'GET',
dataType: 'json',
Expand Down Expand Up @@ -453,7 +453,7 @@ var SearchBar = React.createClass({
statsView = (
<div className="stats">
<div className="stats-left">
<a href="/excluded_files.html"
<a href="excluded_files.html"
className="link-gray">
Excluded Files
</a>
Expand Down
Loading

0 comments on commit 81c9d59

Please sign in to comment.