Skip to content

Commit

Permalink
Added regex to routing (#1441)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkkhedawat authored and shiftkey committed Oct 6, 2019
1 parent 89a79b3 commit ac24073
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions javascripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,14 +304,14 @@ define([
* It ensures to read values from the URI query param and perform actions
* based on that. NOTE: It has major side effects on the browser.
*/
this.get('#/filters', function() {
this.get(/\#\/filters/, function() {
var labels = prepareForHTML(getParameterByName('labels'));
var names = prepareForHTML(getParameterByName('names'));
var tags = prepareForHTML(getParameterByName('tags'));
renderProjects(projectsSvc, tags, names, labels);
});

this.get('#/', function() {
this.get('/', function() {
renderProjects(projectsSvc);
});
});
Expand Down

0 comments on commit ac24073

Please sign in to comment.