summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/lib
diff options
context:
space:
mode:
authorTim Zallmann <tzallmann@gitlab.com>2018-03-28 15:35:28 +0200
committerTim Zallmann <tzallmann@gitlab.com>2018-03-28 15:35:28 +0200
commit9d958af5a2a8c667509d6fce9729a1c5997e229b (patch)
treeec959779e056a98cb873c4b1fcc45f5afab5682b /app/assets/javascripts/lib
parenta868ca0b12df1f4043ece512a318bca7d0ea9b99 (diff)
downloadgitlab-ce-9d958af5a2a8c667509d6fce9729a1c5997e229b.tar.gz
Fixed Utility Function based on Review Comments
Diffstat (limited to 'app/assets/javascripts/lib')
-rw-r--r--app/assets/javascripts/lib/utils/url_utility.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/lib/utils/url_utility.js b/app/assets/javascripts/lib/utils/url_utility.js
index f5adfa2f356..dd17544b656 100644
--- a/app/assets/javascripts/lib/utils/url_utility.js
+++ b/app/assets/javascripts/lib/utils/url_utility.js
@@ -84,10 +84,10 @@ export function redirectTo(url) {
return window.location.assign(url);
}
-export function webIDEUrl(projectUrl = undefined) {
+export function webIDEUrl(route = undefined) {
let returnUrl = `${gon.relative_url_root}/-/ide/`;
- if (projectUrl) {
- returnUrl += `project${projectUrl}`;
+ if (route) {
+ returnUrl += `project${route}`;
}
return returnUrl;
}