Build a path string from normalized path/search/hash parts.
Missing prefixes are normalized:
search: "q=1"
?q=1
hash: "section"
#section
Example:
buildHistoryPath({ path: "books/42", search: "tab=info" })// "/books/42?tab=info" Copy
buildHistoryPath({ path: "books/42", search: "tab=info" })// "/books/42?tab=info"
Build a path string from normalized path/search/hash parts.
Missing prefixes are normalized:
search: "q=1"->?q=1hash: "section"->#sectionExample: