Skip to content

Fix admin website config upload URL - #44

Open
luoyanglang wants to merge 1 commit into
idcsmart:mainfrom
luoyanglang:wolf/fix-admin-upload-url
Open

Fix admin website config upload URL#44
luoyanglang wants to merge 1 commit into
idcsmart:mainfrom
luoyanglang:wolf/fix-admin-upload-url

Conversation

@luoyanglang

Copy link
Copy Markdown

Summary

  • Fix the website config upload endpoint path in the admin template controller page
  • Avoid generating a double-slash URL such as /admin//v1/upload when str already ends with /

Verification

  • node --check 10.4.6/public/admin/template/default/js/template_web_config.js
  • Confirmed the file now builds str + "v1/upload" instead of str + "/v1/upload"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant