Commit 6fe736f2 authored by Douwe Maan's avatar Douwe Maan
Browse files

Merge branch '35567-fix-relative-urls-in-webpack-public-path' into 'master'

Fix relative_url_root support for webpack chunks

Closes #35567

See merge request !13165
......@@ -34,6 +34,8 @@ def webpack_public_host
end
def webpack_public_path
"#{webpack_public_host}/#{Rails.application.config.webpack.public_path}/"
relative_path = Rails.application.config.relative_url_root
webpack_path = Rails.application.config.webpack.public_path
File.join(webpack_public_host.to_s, relative_path.to_s, webpack_path.to_s, '')
end
end
---
title: Fix asynchronous javascript paths when GitLab is installed under a relative
URL
merge_request: 13165
author:
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