Closed lbdm44 closed 2 years ago
When clicking on an external search result, if the URL is complex there is a potential for the opened tab to be incorrect.
document path: "/foo/bar/graphql" base URI: "www.example.com/foo/bar/"
"/foo/bar/graphql"
"www.example.com/foo/bar/"
www.example.com/foo/bar/bar/graphql
www.example.com/foo/bar/graphql
When clicking on an external search result, if the URL is complex there is a potential for the opened tab to be incorrect.
Example
Input
document path:
"/foo/bar/graphql"
base URI:"www.example.com/foo/bar/"
Output
www.example.com/foo/bar/bar/graphql
Expected
www.example.com/foo/bar/graphql