Grails 3.0 applicationyml configuration for portable urls

How do I set up portable URLs in the new Grails 3.0 file application.yml

?

The following configuration doesn't seem to stick:

Grails Application / Config / application.yml

grails:
   web:
      url:
         converter: "hyphenated"

      

My test controller:

Grails app / controllers / BookAuthorsController.groovy

class BookAuthorsController {

   def index() {
   }

}

      

And a look at:
grails-app / views / BookAuthors / index.gsp

This page (with the unwanted camel url) displays OK:
http: // localhost: 8080 / bookAuthors

This page should render, but results in a page not found error (404):
http: // localhost: 8080 / book-authors

+3
grails grails-3.0


source to share


No one has answered this question yet

Check out similar questions:

4
Grails layouts don't apply to 404 UrlMapping
1
Add # / to the beginning of the url in your controller redirect in Grails 3.2.3
1
Upgrading Grails from 1.3.7 to 2.0.1 -
0
Grails webapp not displaying gsp page
0
Many-to-many relationship was not persisted using GORM and Grails
0
Not available index.gsp in grails
0
Can Grails 3 apps built with profile = web-api have gsps?
0
Upgrading to: Grails 3.3.2, Setting the Server URL
0
HTTP Status 404 - Grails
-1
Displaying Grails Views to Different URLs



All Articles
Loading...
X
Show
Funny
Dev
Pics