Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
01dbf706
Commit
01dbf706
authored
Oct 27, 2018
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix search "all in GitLab" not working with relative URLs
Closes
https://gitlab.com/gitlab-org/gitlab-ce/issues/53259
parent
e997b22d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
app/assets/javascripts/search_autocomplete.js
app/assets/javascripts/search_autocomplete.js
+2
-2
changelogs/unreleased/sh-fix-search-relative-urls.yml
changelogs/unreleased/sh-fix-search-relative-urls.yml
+5
-0
No files found.
app/assets/javascripts/search_autocomplete.js
View file @
01dbf706
...
@@ -226,7 +226,7 @@ export class SearchAutocomplete {
...
@@ -226,7 +226,7 @@ export class SearchAutocomplete {
icon
,
icon
,
text
:
term
,
text
:
term
,
template
:
s__
(
'
SearchAutocomplete|in all GitLab
'
),
template
:
s__
(
'
SearchAutocomplete|in all GitLab
'
),
url
:
`/search?search=
${
term
}
`
,
url
:
`
${
gon
.
relative_url_root
}
/search?search=
${
term
}
`
,
});
});
if
(
template
)
{
if
(
template
)
{
...
@@ -234,7 +234,7 @@ export class SearchAutocomplete {
...
@@ -234,7 +234,7 @@ export class SearchAutocomplete {
icon
,
icon
,
text
:
term
,
text
:
term
,
template
,
template
,
url
:
`/search?search=
${
term
}
&project_id=
${
this
.
projectInputEl
.
val
()}
&group_id=
${
this
.
groupInputEl
.
val
()}
`
,
url
:
`
${
gon
.
relative_url_root
}
/search?search=
${
term
}
&project_id=
${
this
.
projectInputEl
.
val
()}
&group_id=
${
this
.
groupInputEl
.
val
()}
`
,
});
});
}
}
}
}
...
...
changelogs/unreleased/sh-fix-search-relative-urls.yml
0 → 100644
View file @
01dbf706
---
title
:
Fix search "all in GitLab" not working with relative URLs
merge_request
:
22644
author
:
type
:
fixed
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment