Skip to content

Commit

Permalink
fixup: more route fixes (bigcz, projects)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alice Rottersman committed Aug 31, 2017
1 parent b777db0 commit f4b97c7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/mmw/js/src/data_catalog/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ var Result = Backbone.Model.extend({
});

var Results = Backbone.Collection.extend({
url: '/api/bigcz/search',
url: '/bigcz/search',
model: Result,

initialize: function(models, options) {
Expand Down
2 changes: 1 addition & 1 deletion src/mmw/js/src/modeling/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ var ProjectModel = Backbone.Model.extend({
getReferenceUrl: function() {
// Return a url fragment that can access this project at its
// current state /project/<id>/scenario/<id>
var root = '/mmw/project/';
var root = '/project/';

if (this.get('id')) {
var modelPart = this.id,
Expand Down
2 changes: 1 addition & 1 deletion src/mmw/js/src/modeling/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ describe('Modeling', function() {
});

describe('#getReferenceUrl', function() {
var base = '/mmw/project/';
var base = '/project/';

it('generates no url fragment for unsaved projects', function() {
var project = new models.ProjectModel({ id: null });
Expand Down
2 changes: 1 addition & 1 deletion src/mmw/mmw/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
namespace='rest_framework')),
url(r'^admin/', include(admin.site.urls)),
url(r'^accounts/', include(registration.backends.default.urls)),
url(r'^mmw/bigcz/', include(apps.bigcz.urls)),
url(r'^bigcz/', include(apps.bigcz.urls)),
url(r'^mmw/geocode/', include(apps.geocode.urls)),
url(r'^mmw/modeling/', include(apps.modeling.urls)),
url(r'^api/', include(apps.geoprocessing_api.urls)),
Expand Down

0 comments on commit f4b97c7

Please sign in to comment.