summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/projects
diff options
context:
space:
mode:
authorDenys Mishunov <dmishunov@gitlab.com>2019-07-05 00:30:34 +0200
committerDenys Mishunov <dmishunov@gitlab.com>2019-07-05 12:50:50 +0200
commit352d535849e31e7defd0ce0e70fe3543f7282a17 (patch)
tree27c755dbc70c4bb5c591f3ca27191d10efcd0777 /app/assets/javascripts/projects
parentf845a081e336621e991587f88ee7d8ce6d012e21 (diff)
downloadgitlab-ce-352d535849e31e7defd0ce0e70fe3543f7282a17.tar.gz
Fixed back navigation for projects filter62088-search-back
Filterable list now sends request to filter the projects list explicitly with `json` extension to avoid breakage when navigating back from a project to the filtered project's list.
Diffstat (limited to 'app/assets/javascripts/projects')
-rw-r--r--app/assets/javascripts/projects/projects_filterable_list.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/assets/javascripts/projects/projects_filterable_list.js b/app/assets/javascripts/projects/projects_filterable_list.js
new file mode 100644
index 00000000000..433c894e668
--- /dev/null
+++ b/app/assets/javascripts/projects/projects_filterable_list.js
@@ -0,0 +1,7 @@
+import FilterableList from '~/filterable_list';
+
+export default class ProjectsFilterableList extends FilterableList {
+ getFilterEndpoint() {
+ return this.getPagePath().replace('/projects?', '/projects.json?');
+ }
+}