cSetPathUrl function

void cSetPathUrl()

Sets the URL strategy of your web app to using paths instead of a leading hash (#).

You can safely call this on all platforms, i.e. also when running on mobile or desktop. In that case, it will simply be a noop.

See also:

  • cSetHashUrl, which will use a hash URL strategy instead.

Implementation

void cSetPathUrl() {
  setUrlStrategy(PathUrlStrategy());
}