-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Anchors doesn't work in chrome #425
Comments
Yes, we add the |
In chrome, an url with an anchor don't scroll to the anchor's position in the page, such as: In IE, it is OK, the screen showing the page start at the anchor's position. Chrome version: 19.0.1084.56 m |
That's an extraordinarily old version. In the latest (39), it works fine: I suggest you update, if it's possible. Our recommended browser version policy is here: https://help.github.com/articles/supported-browsers/ |
I like the screencast. Very effective way to get the point across. As I side note, when testing this myself, I did notice that the mobile website doesn't carry over the anchor position when you click "View README.md" from the home page. Perhaps something to think about supporting in the future. |
Actually, it doesn't seem to work at all in the mobile version. |
/cc @github/dotcom-mobile re: anchor breakage. Any thoughts here? |
It looks like we're missing the JS on the mobile side that handles these |
❤️ @jasonlong |
\o/ Thanks @jasonlong! |
Mobile anchors should be fixed up now. |
Solid! I'll let the twitterverse know. |
There are still subtle bugs around our handling of anchors because of the fact we prefix everything with |
There seems to be another bug in When heading text contained non-ascii characters, |
Experiencing this now w/ anchors (internal targets) with reStructuredText: On https://github.com/tony/django-pure/blob/b2046df5967f023/README.rst. Clicking "startappdifferences" correctly links to https://github.com/tony/django-pure/blob/b2046df5967f02/README.rst#startappdifferences. However, the internal link is as follows: <p id="user-content-startappdifferences">Confusingly perhaps, django's default app created with <code>django-admin startproject</code>
is not the same output as an app with <code>django-admin startapp</code>.</p> If the prefix is intended to be expected behavior, I could adjust https://github.com/github/markup/blob/master/lib/github/commands/rest2html to intercept and at the prefix. To do that we need a guideline of when |
Someone please look at this issue. I tested yesterday that on mobile browsers such as Safari/Chrome on iOS, GitHub anchor links to the same page do NOT work. For example, use any mobile browser (e.g. on iOS) to visit https://github.com/jakiestfu/himawari.js and try to click on the table of contents in the README file. Nothing happens. This is related to #716. Not sure why that bug was closed though. |
The page is not scrolled down to the last header when I open this link is Chrome: https://github.com/DevExpress/AjaxControlToolkit/wiki#reference |
Hello; I am not a coder but am having an anchor problem I cant fix in Chrome Version 48.0.2564.116 m. The anchor does works in IE 11. |
May be there is some way to off the anchor? My latest Chrome shows paragraph sign instead one. (Mopping up MDwiki engine hosted via Editey) |
The bug here makes second click of the same anchor not working. and it failed on other browsers as I tried in FF, chrome and IE. problemWhen a user clicks on an anchor and jumps to a header, if user scrolls back to the top or somewhere else on the page and clicks on the same anchor browser does not jump to the header. what I had found so far...I found that to workaround the issue, I always have to prefer the anchor link with Could this be investigated and fixed? |
I got feedback from github support that this is fixed in GHE 2.11. |
Hi there. I was hoping I could get some help here with what seems to be a recent anchor issue on my site at http://www.m3creations.com/. The menu items NO longer link to the sections when using Chrome, but do work in IE, also work on mobile. Issue is isolated to Chrome but I can't figure out a fix. |
@madelinemm I have exactly the same problem, tried a lot of things and can't figure out what's wrong. In all the other browsers it works, except the desktop Chrome-version. If I manually add /#contact (for example) behind the URL, it also works. If you find a solution, please let me know. |
I'm having the exact same problem as @madelinemm and @marloes2294. Will be checking back for updates. Thanks! |
I have tried a few things to fix the issue but still not resolved. I have reached out to Chrome support. Unfortunately they don't even have a category for this issue. |
@madelinemm @jdwebskey Having a similar issue to you both, though I am definitely not experienced enough to play around with my site too much. I'll check back for updates too - do let me know if you manage to find a fix and I'll do likewise! |
Hello, This is also a concern when using firefox in caret navigation mode (F7):
Actual results: Caret is still inside the "Arch Linux, Manjaro" link. Expected results: Caret should have gone to the anchor. The screen does scroll because of the javascript bits, but the browser's caret does not actually jump there. It would be enough to fix the generated README link code into
which would also make them work without javascript support in the browser. |
Since I don't seem to be able to reopen the issue, I have opened #1210 |
Any anchors does not work in chrome, but works in IE.
I checked the html source, it seems github add "user-content-" prefix for anchor name/id and set class="anchor" .
The text was updated successfully, but these errors were encountered: