Grails

Support fragments when rendering URIs

Details

Description

Add support for "fragments" in dynamically rendered URIs, eg, "http://java.sun.com/j2se/1.5.0/docs/api/java/net/URI.html#getFragment()"

At the moment in order to link to a fragment (ie, a named anchor on a page) one must build the URI manually. It would be nicer to have the various tags and controller methods support a new named parameter, eg:

redirect(controller: "location", action: "show", id: location.id, params [view: "notes], fragment: "note_${note.id}")

Which would create the following URI:

/app/location/show/19?view=notes#note_33

We would need it for anything that renders a URI, eg:

redirect()
chain()
<g:link />

Issue Links

Activity

There are no comments yet on this issue.

People

Vote (1)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: