Cheers, I changed this to return null instead too.
public String getBaseURL(String pageName) { return baseURLSource.getBaseURL(request.isSecure()); } Ryan Inge Solvoll-2 wrote: > > This should do the trick :) > > You can probably do the same thing more intuitively by advising the > RequestSecurityManager. I just didn't bother to change my working > implementation. > > public static void contributeAlias(Configuration<AliasContribution> > configuration, @InjectService("Request") Request request, > @InjectService("BaseURLSource") BaseURLSource baseURLSource) { > RequestSecurityManager manager = new MyRequestSecurityManager(request, > baseURLSource); > > configuration.add(AliasContribution.create(RequestSecurityManager.class, > manager)); > } > > public class MyRequestSecurityManager implements RequestSecurityManager { > > private final Request request; > private final BaseURLSource baseURLSource; > > public MyRequestSecurityManager(Request request, BaseURLSource > baseURLSource) { > this.request = request; > this.baseURLSource = baseURLSource; > } > > public boolean checkForInsecureRequest(String pageName) throws > IOException > { > return false; > } > > public String getBaseURL(String pageName) { > return baseURLSource.getBaseURL(request.isSecure()); > } > } > > -- View this message in context: http://www.nabble.com/Staying-in-secure-or-non-secure-mode-rather-than-autoswitching-based-on-%40secure-tp23681100p23682272.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org