Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Ensure normalizeURL retains port number #3959

Merged

Conversation

jeme95
Copy link
Contributor

@jeme95 jeme95 commented Jan 31, 2025

Issue

The normalizeURL function was incorrectly removing the port from URLs.

Fix

  • Explicitly include the port if it's present (urlObj.port)
  • Prevents unintended behavior where ports (e.g., :3000) were stripped

Example

Before:
normalizeURL("http://example.com:3000/path?query=1") → "example.com/path?query=1" (port missing)

After:
normalizeURL("http://example.com:3000/path?query=1") → "example.com:3000/path?query=1" (port retained)

The normalizeURL function was previously ignoring the port in the URL.
This fix explicitly includes the port if present (e.g., `:3000`).
fix lint problem
Copy link
Contributor

@HenryHengZJ HenryHengZJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you !

@HenryHengZJ HenryHengZJ merged commit e1ea1c6 into FlowiseAI:main Feb 3, 2025
2 checks passed
galexandrov pushed a commit to xheal/Flowise that referenced this pull request Feb 9, 2025
* fix: Preserve port in normalizeURL function

The normalizeURL function was previously ignoring the port in the URL.
This fix explicitly includes the port if present (e.g., `:3000`).

* fix lint problem

fix lint problem
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.

2 participants