Is this a bug? Should I add a prefix in URL?

Splash Forums Rewrite Users Is this a bug? Should I add a prefix in URL?

This topic contains 2 replies, has 2 voices, and was last updated by  Lincoln Baxter III 2 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #26056

    vished
    Participant

    Hello,

    I have a strange problem:

    If I use the following @Join, than I have all the time the “/portal/userPageLoginUserShow.jsf”-Page as my startPage. I don´t know why?
    @Join(path = "/{pseudonym}", to = "/portal/userPageLoginUserShow.jsf")

    But if I add a “/test/” to the @Join path, than everything is ok. Is this normal? Or what´s wrong?

    @Join(path = "/test/{pseudonym}", to = "/portal/userPageLoginUserShow.jsf")
    @ELBeanName(value = "userPageLoginUserEditController")
    @RequestScoped
    #26057

    vished
    Participant

    well, I try it something and find the solution, by adding a new class for my startPage:

    @RewriteConfiguration
    public class UrlConfigProvider extends HttpConfigurationProvider {
    
    	@Override
    	public Configuration getConfiguration(ServletContext context) {
    		return ConfigurationBuilder.begin()
    
    				.addRule(
    						Join.path("/home").to("/startPage.jsf")
    								.withInboundCorrection());
    
    	}
    
    	@Override
    	public int priority() {
    		return 0;
    	}
    
    }
    #26058

    Good! I’m glad you got this figured out.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Comments are closed.