Also you can use this.props.match.url because the match object has the url Object which is the currently loaded path (the page you're currently on).
In the end you can chain /path1/path2 and build a dynamic relative path like this this.props.match.url + /path1/path2
Example:
Path name