You need to sign in to do that
Don't have an account?
Benjamin Kesner
URL Rewriter and absolute URLs
All the documentation talk about relative urls as does almost all of the examples. Do anyone know how to use the Site.UrlRewriter to go to an absolute. For example:
return new PageReference('http://my.example.com/example?pid=' + pid');
no problem doing it relative
return new PageReference( "/example" + '?pid=' + pid);
Any ideas? Is it even possible? On another thread I notice that it does not like the ":" character. Any way around that?
return new PageReference('http://my.example.com/example?pid=' + pid');
no problem doing it relative
return new PageReference( "/example" + '?pid=' + pid);
Any ideas? Is it even possible? On another thread I notice that it does not like the ":" character. Any way around that?
PageReference( '/example?pid=' + pid);
In the larger context, is it possible to rewrite to an absolute at all? I can see times when we might want to use it and I want to know if it possible.
call outPageRef pr = new ourPageRef('/test.html');
public class ourPageRef{
public string ourRoot(string s){
return 'www.example.com'+s;
}