imranmir opened a new issue, #15132: URL: https://github.com/apache/grails-core/issues/15132
### Expected Behavior If a url is created using grailsLinkGenerator `String url = grailsLinkGenerator.link(controller: 'menu', action: 'home')` and the url (/**red**/menu/home) is used to redirect like: `redirect(url: url)` 404 occurs as the redirect appends the application name again to the url, e.g., `http://localhost:8080/red/red/menu/home` This looks to be a regression and asit works in Grails 5. Attaching a Grails 5 and Grails 6 application for bug reproduction. ### Actual Behaviour Redirect should not append the application name again. ### Steps To Reproduce Please checkout the following Grails 6.2.3 project: https://github.com/imranmir/redirect-issue Boot run the application Hit the following url: http://localhost:8080/red/test/index This should ideally have redirected to http://localhost:8080/red/menu/home, but instead it tries to redirect to http://localhost:8080/red/red/menu/home ### Environment Information OSX openjdk 11.0.27 ### Example Application https://github.com/imranmir/redirect-issue ### Version 6.2.3 -- 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]
