setPathUrlStrategy static method

void setPathUrlStrategy()

Uses PathUrlStrategy on the web, which removes hashes from URLs. This must be called at app startup, before runApp is called.

Calling this method does nothing when not running on the web.

Implementation

static void setPathUrlStrategy() {
  if (kIsWeb) {
    VxNav.setPathUrlStrategy(); // coverage:ignore-line
  }
}