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

Respect <base> href in Links href #2177

Merged
merged 1 commit into from
Nov 22, 2021
Merged

Conversation

WorldSEnder
Copy link
Member

@WorldSEnder WorldSEnder commented Nov 22, 2021

Description

With this PR Link<impl Routable> sets the href attribute taking into account a given base path, in the same manner as the BrowserHistory component does. This should fix some screen reader setups.

Take for example the router example. Hovering over the "Posts" link in the app bar should say https://examples.yew.rs/router/posts but before this patch displays https://examples.yew.rs/posts - navigation works fine in both cases though.

Checklist

  • I have run cargo make pr-flow
  • I have reviewed my own code
  • I have added tests

@voidpumpkin voidpumpkin added the A-yew-router Area: The yew-router crate label Nov 22, 2021
@ranile ranile enabled auto-merge (squash) November 22, 2021 15:09
@ranile ranile merged commit ae7a8be into yewstack:master Nov 22, 2021
@WorldSEnder WorldSEnder deleted the router-href branch November 23, 2021 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-yew-router Area: The yew-router crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants