登录后,Seam安全性和prettyfaces重定向到错误的URL

时间:2012-06-10 17:59:23

标签: java jsf seam3 prettyfaces

当我使用seam security登录我的页面时,它会将我重定向到/WEB-INF/pages/index.xhtml而不是简单的/。这是我的@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,
        ...
    }
    ...
}

你知道问题出在哪里吗?

1 个答案:

答案 0 :(得分:2)

我认为这是一个错误: https://issues.jboss.org/browse/SEAMFACES-193

我认为我找到了修复方法,所以我在github上提交了一个pull请求: https://github.com/seam/faces/pull/75