Support partial path segment parameter

Closes #1000