Re: withInboundCorrection 's problem

Splash Forums Rewrite Users withInboundCorrection 's problem Re: withInboundCorrection 's problem

#22615

Satan
Participant

hi,Christian

your code work fine ,just with little change :Redirect.permanent(context.getContextPath()+"/u/{u}")

but now, i use only one rule for do that:

.addRule(Join.path("/u/{u}").to("/protected/index.jsp").where("u").matches("\w+").withInboundCorrection())

input url(‘protected/index.jsp?u=someone’),and output url(‘u/someone’)

it found parameter ‘u’ implicitly.

perhaps I’m wrong at the beginning ?

~Richard