Commit 9f95fe18 authored by Illya Klymov's avatar Illya Klymov

Fix incorrect urls

parent 265ae979
...@@ -28,7 +28,7 @@ export default { ...@@ -28,7 +28,7 @@ export default {
}; };
</script> </script>
<template> <template>
<import-projects-table provider-title="providerTitle"> <import-projects-table :provider-title="providerTitle">
<template #actions> <template #actions>
<slot name="actions"></slot> <slot name="actions"></slot>
</template> </template>
......
...@@ -19,8 +19,12 @@ module ImportHelper ...@@ -19,8 +19,12 @@ module ImportHelper
end end
def provider_project_link_url(provider_url, full_path) def provider_project_link_url(provider_url, full_path)
if Gitlab::Utils.parse_url(full_path)&.absolute?
full_path
else
Gitlab::Utils.append_path(provider_url, full_path) Gitlab::Utils.append_path(provider_url, full_path)
end end
end
def import_will_timeout_message(_ci_cd_only) def import_will_timeout_message(_ci_cd_only)
timeout = time_interval_in_words(Gitlab.config.gitlab_shell.git_timeout) timeout = time_interval_in_words(Gitlab.config.gitlab_shell.git_timeout)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment