Skip to content

Commit 81c9d59

Browse files
author
Daniel Schauenberg
committed
use relative URLs for assets
this makes it possible to serve hound off of a different location than "/". fixes hound-search#188 closes hound-search#229
1 parent f95e9a9 commit 81c9d59

File tree

4 files changed

+52
-52
lines changed

4 files changed

+52
-52
lines changed

ui/assets/js/excluded_files.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ var FilterableExcludedFiles = React.createClass({
7878
getInitialState: function() {
7979
var _this = this;
8080
$.ajax({
81-
url: '/api/v1/repos',
81+
url: 'api/v1/repos',
8282
dataType: 'json',
8383
success: function(data) {
8484
_this.setState({ repos: data });
@@ -103,7 +103,7 @@ var FilterableExcludedFiles = React.createClass({
103103
repo: this.state.repos[repo],
104104
});
105105
$.ajax({
106-
url: '/api/v1/excludes',
106+
url: 'api/v1/excludes',
107107
data: {repo: repo},
108108
type: 'GET',
109109
dataType: 'json',

ui/assets/js/hound.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ var Model = {
139139
}
140140

141141
$.ajax({
142-
url: '/api/v1/repos',
142+
url: 'api/v1/repos',
143143
dataType: 'json',
144144
success: function(data) {
145145
_this.repos = data;
@@ -181,7 +181,7 @@ var Model = {
181181
}
182182

183183
$.ajax({
184-
url: '/api/v1/search',
184+
url: 'api/v1/search',
185185
data: params,
186186
type: 'GET',
187187
dataType: 'json',
@@ -249,7 +249,7 @@ var Model = {
249249
});
250250

251251
$.ajax({
252-
url: '/api/v1/search',
252+
url: 'api/v1/search',
253253
data: params,
254254
type: 'GET',
255255
dataType: 'json',
@@ -453,7 +453,7 @@ var SearchBar = React.createClass({
453453
statsView = (
454454
<div className="stats">
455455
<div className="stats-left">
456-
<a href="/excluded_files.html"
456+
<a href="excluded_files.html"
457457
className="link-gray">
458458
Excluded Files
459459
</a>

0 commit comments

Comments
 (0)