You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is known since 2017 and was not merged because of a missing test.
I create a pull-request with the required tests as requested in the original pull request made to grails core grails/grails-core#10839.
the issue was reported before, but was closed because the issue was not described properly.
Fortunately it is very straightforward ...
Steps to Reproduce
Create a controller with a mapping like this: "/somepath/mycontroller/$action?/$id?" controller: 'mycontroller'
use sortable column tag on a GSP rendered by mycontroller: <g:sortableColumn property="prop" title="Title"/>
Expected Behaviour
The generated link should be "/somepath/mycontroller/index?sort=...".
Actual Behaviour
The link misses the "/somepath" part. Wrong URL: "/mycontroller/index?sort=...".
Environment Information
Grails Version: 3.3.0
JDK Version: 8
Fix
As described here, replace def namespace = attrs.namespace ? attrs.remove("namespace") : "" with def namespace = attrs.remove("namespace") in org.grails.plugins.web.taglib.UrlMappingTagLib#sortableColumn
The text was updated successfully, but these errors were encountered:
fuxx
added a commit
to fuxx/grails-gsp
that referenced
this issue
Jul 17, 2019
Hej!
The issue is known since 2017 and was not merged because of a missing test.
I create a pull-request with the required tests as requested in the original pull request made to grails core grails/grails-core#10839.
Original issue: grails/grails-core#10819
Related issue:
The text was updated successfully, but these errors were encountered: