code: public static String toBaseUrl(final Class<? extends Page> pageClass,
  		final PageParameters parameters)
  	{
  		return getBaseUrl(pageClass, parameters).canonical().toString();
  	}
docs: Gets the base ur as String.
  
  @param pageClass
  the page class
  @param parameters
  the parameters
  @return the base url as String.