I am using following code for routing:
public class MainLayout extends Div implements RouterLayout, PageConfigurator {
// some code
@Override
public void showRouterLayoutContent(HasElement content) {
if (content != null) {
this.content.getElement().appendChild(Objects.requireNonNull(content.getElement()));
}
}
public MainLayout() {
add( getHeader(), content, getFooter());
addClassName("page-home");
}
// some more code
}
The above code works fine with all newer browser, but it doesn’t render “content” in older browser. In older browser, it shows “header” and “footer”, but not the actual content.
Due to this, Google says all of my pages are identical, as it contains only header and footer, nothing else.
Please help on this.