-
Notifications
You must be signed in to change notification settings - Fork 168
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
<a href="#anchor"> does not link to <a name="anchor> in same page #1215
Comments
This happens because there's a Which is better?
|
I just did a quick search in our HTML files for "<base", but I couldn't find it anywhere. Where does this |
Also, if I need to write |
The Assuming we keep it there in the future as well, it would indeed be good to provide some built-in feature for getting the URL of the current page. Right not it can be handled manually by populating the template model from the server with |
So to clarify, you can either create navigation links as |
It's not only about navigation links, it also affects anything else that is referenced by URLs, e.g. stylesheets, scripts and HTML imports. |
Right now
Supporting navigation links is a valid use case but there are ways to implement it without introducing the Please consider custom URL resolution logic for links with the |
Internal navigation links should also work e.g. when opening the link in a new tab, so custom logic in the internal navigation handling wouldn't be enough for that case either. We would instead have to do custom URL resolving for the
|
I see two main aspects of using
So the first item introduce an issue when a view should handle all URIs which starts with view URI. The second issue is also related to handling different URIs by the same view. So Also worth to mention that in our tests there are many places where However the API of |
I feel that mixing Flow navigation in here is overkill. Developers are looking a quick way to let users navigate within the current page/view. Code like this should work just like it works in browsers (without any Flow navigation/events happening):
|
Yes, it should be easy to create inside-page hash-based links from that just work, either in a template or from Java. No timeline for this enhancement currently though, would require some +1s |
I follow the issue as it is creating problem to our application |
Following the issue as well, as it renders my current project basically unusable. |
Gentlefolk, Its marked as Done/Pending Release (as of May 2021) do we known when this is going to be released and/or the details of what the solution was? I think the issue #822 that I raised relates t this. |
I cannot find anything indicating that any changes were done to address this issue. I wasn't there 1.5 years ago when it was marked as closed, but I would assume that this was unintentional since it was closed by the original reporter rather than a development team member. |
Normally, when I create
<a href="#anchor">
in an HTML page, this will cause there to be link pointing to<a name="anchor">
in that same page. So, for example, if you're on https://localhost:8080/my-page, then clicking the link will take you to https://localhost:8080/my-page/#anchor.However, in
Hummingbird(now known as Flow), when you create<a href="#anchor">
on https://localhost:8080/my-page, clicking the link will take you to the root of the site instead, to https://localhost:8080/#anchor. This is not expected behavior.Please make it behave like on a normal site.
The text was updated successfully, but these errors were encountered: