Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 #1097

Closed
cperotAxway opened this issue Oct 18, 2024 · 1 comment · Fixed by #1098
Labels

Comments

@cperotAxway
Copy link

cperotAxway commented Oct 18, 2024

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

@asyncapi-bot
Copy link
Contributor

🎉 This issue has been resolved in version 2.4.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants