-
-
Notifications
You must be signed in to change notification settings - Fork 967
Description
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
Working redirect on Grails 5 application:
https://github.com/imranmir/green-app-
Metadata
Metadata
Assignees
Labels
Type
Projects
Status