Incorrect Port Added to Redirect URL in Spring Boot App. #139156
Replies: 2 comments
This comment was marked as off-topic.
This comment was marked as off-topic.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
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