refactor(main) getPathName: add querystring