Skip to content

Show correct end point when launchUrl is absolute URL - #1051

Merged
Smit Patel (smitpatel) merged 1 commit into
mainfrom
smit/launchUrl
Nov 28, 2023
Merged

Smit Patel (smitpatel) merged 1 commit into
mainfrom
smit/launchUrl

Conversation

@smitpatel

Copy link
Copy Markdown
Contributor

Fixes #812

We generate end point URL from applicationUrl so port is correct when replicas are used or a different port is assigned by orchestrator. We use launchUrl in following way to generate final end point URL

  • Endpoint URL if launchUrl is null or empty.
  • Endpoint URL suffixed with launchUrl if launchUrl is relative.
  • Endpoint URL replacing the applicationUrl in launchUrl if launchUrl is absolute and applicationUrl is prefix.
  • Endpoint URL if none of above matches.

Fixes #812

We generate end point URL from applicationUrl so port is correct when replicas are used or a different port is assigned by orchestrator.
We use launchUrl in following way to generate final end point URL
- Endpoint URL if launchUrl is null or empty.
- Endpoint URL suffixed with launchUrl if launchUrl is relative.
- Endpoint URL replacing the applicationUrl in launchUrl if launchUrl is absolute and applicationUrl is prefix.
- Endpoint URL if none of above matches.

@tlmii Tim Mulholland (tlmii) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A few comments about alternatives, though I'm not opposed to doing it the current way. Just wanted to call them out as an option to make sure they were considered.

@smitpatel
Smit Patel (smitpatel) merged commit 34e94ef into main Nov 28, 2023
@smitpatel
Smit Patel (smitpatel) deleted the smit/launchUrl branch November 28, 2023 22:42
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When launchUrl is a full path the dashboard presents a broken link for that service endpoint

2 participants