WebUI: use `filepatharg` in `onload` path.

Fixes #3296.