-
Notifications
You must be signed in to change notification settings - Fork 185
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
Visiting a specific Disqus Comment link does not reach its destination #6
Comments
Excellent! That's a good catch. |
@tshepang I have fixed this issue. But I need your input. Can you please pull my branch Please let me know when you update your blog with the fix so that I can check few others things too myself. |
ekselent! it weks \0/ you can go ahead and do your tests |
Thanks @tshepang for your cooperation. Please keep on reporting issues that you notice. |
@tshepang need a favor from you. Can you please change the link of Elegant on your page from |
Why is that? There is already a pointer to the page I use. Also, that would break the consistency... all the other theme links point to the respective Github pages. |
My Github repository is not the best place to access Elegant. I am constantly updating and pushing changes to master. Sometimes, though rarely, I had to rebase too. Users should use the zip files that they can download via "Get Elegant" button on the project documentation page. Repository is useful for those people who can keep abreast with development. I understand your point about other themes. But most other themes do not get as frequently updated as Elegant that's why pointing to repo is dangerous. My intention is to keep is brain dead simple for users. Let me know what you think about it. |
The other themes don't normally have dedicated info, other than the README file. That you took the effort to create a detailed post about yours makes me wanna give you what you want :) |
Thanks a lot. I appreciate it. 😄 This is the permalink |
BTW, why are you doing a redirect? I see the actual url is |
Link on my blog can change that's why I use |
This bug has resurfaced. Click the link under Elegant heading on this page to check. |
@tshepang can you please try again. I cannot reproduce this issue at all |
I tried with Firefox and Chrome. I can go to the link if I use it directly (i.e. paste it onto the address bar), but not when I click on the link on that page. My browser just scrolls to the Comments section without actually exposing Disqus. |
I opened it up on Chrome, Safari and Firefox and they all worked as expected. When you see this problem, can you make sure that your page's HTML source code has following lines at the bottom. <script language="javascript" type="text/javascript">
function uncollapse() {
var hash_str = window.location.hash;
if (window.location.hash.match(/^#comment-\d+$/))
{
var hash_str = '#disqus_thread';
}
$(hash_str).collapse({
toggle: true
})
}
</script>
<script type="text/javascript" language="JavaScript">
uncollapse();
</script> Let me know what you find. |
I do have that text at the bottom. Note that visiting the link 'directly' works, but not when visited from the page... do not open the link in a new tab to reproduce the issue. |
Now we are talking! I can reproduce the issue. I will come up with a fix soon. Thank you for reporting it. |
What sort of set-up do you have where you open links in new tabs? |
No setup. It is just a out of habit that I always open links in new tabs. |
Disqus comments are in an iFrame. No matter how much I try, I cannot make it scroll to the exact comment. The best I have manged to do is to open the comments section when user clicks on such links. The final solution will require a bit more Javascript. Even then user will not be able to scroll to the exact disqus comment. I wonder is it worth it? Such Javascript code is brittle, adding it might break more things. What purpose will it server when it cannot scroll you to the exact comment? Easier solution that will not invite more bugs is to make sure such links open in a new tab. See a how to here. We are facing this problem b/c disqus comments are loaded in an iFrame. |
There is another way to do it. If user clicks on such links, we reload the page. Then page scrolls to the correct comment. I think this one is a better solution. @calfzhou please manage sometime to share your feedback too. Thank you. |
For some reason, I think this was fixed. Do you think maybe Disqus changed it's behavior? |
I don't think so. You must have tested it by opening it in a new tab. Anyway, can't comment on Disqus. |
maybe; it's easy to miss like that :) |
No idea about this issue. One adhoc solution is to open the link in an new tab. |
Just call show instead of using toggel Update #6
Ugly workaround, but it works. Thanks. |
This link should reach the oldest Comment in that thread, but it doesn't. This is likely related to the fact that Comments are hidden by default.
The text was updated successfully, but these errors were encountered: