Here's the deal. If the UrlMapping contains a mapping without an action defined, relying on the 'default action' mechanism, the g:link tag gets "confused" and produses wrong link in the form of /app/{controller}/{default-action} instead of just /app/{whatever-the-custom-mapping}
Here's the example from the attached sample app:
Controller:
class DefaultActionBugReportController {
def index = {
render "Hello. I'm your deafult action"
}
}
When explicitly adding action:'index' to the UrlMapping it works (could use it as work around for now, but really would love to go back to the 'default action')
Note: sample app is attached.
Description
This is clearly broken in 1.0.3.
Here's the deal. If the UrlMapping contains a mapping without an action defined, relying on the 'default action' mechanism, the g:link tag gets "confused" and produses wrong link in the form of /app/{controller}/{default-action} instead of just /app/{whatever-the-custom-mapping}
Here's the example from the attached sample app:
Controller:
class DefaultActionBugReportController {
def index = {
render "Hello. I'm your deafult action"
}
}
fails with wrong link produced.
When explicitly adding action:'index' to the UrlMapping it works (could use it as work around for now, but really would love to go back to the 'default action')
Note: sample app is attached.
So what's the solution? I mean I could live with having to specify the default action explicitly in UrlMappings, but is this the best thing in general?
Dmitriy Kopylenko - 21/Jul/08 01:56 PM So what's the solution? I mean I could live with having to specify the default action explicitly in UrlMappings, but is this the best thing in general?
If I fix this one then the other regresses