yuluo-yx opened a new issue, #2480:
URL: https://github.com/apache/rocketmq-dashboard/issues/2480

   ## Problem
   
   The compile-time VITE_API_BASE_URL value only removes one trailing slash and 
is not trimmed. Deployment systems that inject surrounding whitespace or 
repeated trailing slashes therefore produce a malformed Axios baseURL shared by 
every API request.
   
   ## Expected behavior
   
   Normalize the optional build-time value by trimming whitespace, falling back 
to /api for blank input, and removing all trailing slashes while preserving the 
existing empty-string representation for an explicit same-origin root.
   
   ## Verification
   
   Add table-driven configuration tests for blank values, relative and absolute 
URLs, surrounding whitespace, repeated trailing slashes, and root overrides.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to