Question

When I log in to my page with seam security, it redirects me to /WEB-INF/pages/index.xhtml instead of simply /. This is a snippet of my @ViewConfig:

public interface PagesConfig {
    public static final String PAGES_PREFIX = "/WEB-INF/pages/";

    static enum Pages {
        @ViewPattern(PAGES_PREFIX + "index.xhtml")
        @UrlMapping(pattern = "/")
        @LoggedIn
        @LoginView(PAGES_PREFIX + "login.xhtml")
        INDEX,

        @ViewPattern(PAGES_PREFIX + "login.xhtml")
        @UrlMapping(pattern = "/login")
        LOG_IN,
        ...
    }
    ...
}

Do you know where the problem might be?

Was it helpful?

Solution

I think it is a bug: https://issues.jboss.org/browse/SEAMFACES-193

And I think I've found a fix, so I filed a pull request on github: https://github.com/seam/faces/pull/75

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top