Incorrect Port Added to Redirect URL in Spring Boot App. #139156
Unanswered
anishgowda21
asked this question in
Codespaces
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
Environment
Description
When redirecting to an error page in my Spring Boot application running on GitHub Codespaces, an incorrect port (8080) is being added to the URL. This causes the redirection to fail.
Current Behavior
https://[CODESPACE-NAME]-8080.app.github.dev/
https://[CODESPACE-NAME]-8080.app.github.dev:8080/error-page
Expected Behavior
The redirect should maintain the correct URL structure without adding the extra port:
https://[CODESPACE-NAME]-8080.app.github.dev/error-page
Code Snippet
Attempted Solutions
"redirect:/error-page"
, but it didn't work.UriComponentsBuilder
solution as shown in the code snippet, but the issue persists.Questions
Additional Context
The error page itself (/error-page) is defined as follows:
Any help or guidance on resolving this redirection issue in the Codespaces environment would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions