Home UrlMapping to Index is not working
Reply: 0

UrlMapping to Index is not working

user817 Published in March 23, 2018, 9:01 am

I am trying to get my Index which in my case is just localhost:8080 to go to a different page. This code is not working and I'm just going to the index page instead of rendering "this worked"

My UrlMappings file looks like this:

package appworld

class UrlMappings {

    static mappings = {

            constraints {
                // apply constraints here

        "/" {
            controller = "Home"
            action = "isUserLoggedIn"


The method in HomeController.groovy looks like:

def isUserLoggedIn() {
   println("We made it from index")
   render "this worked"
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.32137 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO