Reputation: 747
i added a couple of html files to my Vaadin project layout. These files are "interconnected" with each other via anchors. In browser i can navigate to them w/o any problems, but in Vaadin app after click on link i see the following:
The view could not be found You tried to navigate to a view ('') that does not exist.
After that my address bar in browser contains the follwing address:
How should i handle the navigation in Vaadin?
Upvotes: 0
Views: 99
Reputation: 1127
It seems that you use the Navigator to navigate to your html pages. With the Navigator you can only navigate to Vaadin Views, that are registered using addView(..)
, not arbitrary html pages. To do that use Page.getCurrent().setLocation(<your url>)
.
Upvotes: 1