asyncapi-react
asyncapi-react copied to clipboard
Incompatibility with single page aplication of link to server in the "Available only on servers section" as they doesn't use the full path URL but just the #servername
Description
I'm in a context of single page application with react router and when I click on the link in the section "Available only on servers" it redirects to a URL like https://myhost:myport/#servername due to the fact only the #servername is set on the link. asyncreact component on my app is available at https://myhost:myport/path1/subpath so URL should be https://myhost:myport/path1/subpath#servername.
Expected result In order to be compatible with single page application the full URL should be set and not only the #servername in the link
Actual result href contains only #servername
Steps to reproduce
have a single page application available at https://host:port/ and the asyncapi react component available at https://host:port/path1/path2. Click on the server link in the "Available only on servers" section, it redirect to the root page https://host:port#servername
Troubleshooting