fix: When alias contains parameters, append ext error by sy-records · Pull Request #1855 · docsifyjs/docsify

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to handle all URLs the same with or without the query, just like regular HTML in a browser.

For example, /path/to/folder/?foo=123 has a query, and we still need to look for /path/to/folder/README.md?foo=123, but this skips anything with a query.

In the end, we need to operate on the path separately, and always send the query with the final result.