Grails
  1. Grails
  2. GRAILS-593

Controller URL-style parameters not working

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.3.1
    • Fix Version/s: 0.4
    • Component/s: Controllers
    • Labels:
      None

      Description

      I understand that Grails assumes all URL nodes after the id one are
      param key/values, so
      a URI like this:
      http://localhost:8080/bookmarks/bookmark/show/1/foo/bar
      should translate to params [id: 1, foo: "bar"].

      When I try this with my own (generated) BookmarkController, it turns out
      all the trailing URL nodes are concatenated, so params is
      ["id":"1/foo/bar"].

      What's wrong? BTW I'm using Grails 0.3.1.

        Activity

        Hide
        Graeme Rocher added a comment -

        fixed

        Show
        Graeme Rocher added a comment - fixed

          People

          • Assignee:
            Graeme Rocher
            Reporter:
            Graeme Rocher
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development