Linking with Named anchors (to different page)
-
01 Mayıs 2012 Salı 09:31
I have a content query web part on pagea which has links to (\subsite\pageb\#anchor)
when you click on the link it opens but then in a second jumps to top of the page.
when you open http:\\subsite\pageb#anchor it behaves like same, then second refresh takes you to the correct line. How can I overcome this? All the possible solutions apply to linking in same page and I am not linking within same page.
Tried on Firefox, IE8, all same.
ceren
- Düzenleyen ova c 01 Mayıs 2012 Salı 11:48
Tüm Yanıtlar
-
02 Mayıs 2012 Çarşamba 10:04Moderatör
Hi ceren,
I cann't reproduce, I add an anchor <a name="abc"></a> in a post within a subsit Blog site via editing HTML source, then add this post URL (i.e. http://server/site/subsite/post.aspx?id=2#abc) in parent site list rich text column, and click this link(which href="/site/subsite/post.aspx?id=2#abc"), it will jump to the target post page at the correct line, no refresh, no jumping to top of the page. But I found a post with this similar issue.
You can recreate anchors per the following articles (adding anchors through editing HTML source), and check whether it works in your case,
Thanks
Daniel Yang
TechNet Community Support
- Düzenleyen Daniel YangMicrosoft Contingent Staff, Moderator 02 Mayıs 2012 Çarşamba 10:05
-
03 Mayıs 2012 Perşembe 09:38
Hi Daniel
Thank you for your answer. I tested it for blogs and it is working. But it does not work on Wiki Pages, which I need to make it work. Can you please confirm that you can accomplish this with Wiki Pages? Thanks in advance.
ceren
-
03 Mayıs 2012 Perşembe 11:16Moderatör
Hi ceren,
I can reproduce this issue with Wiki Pages, not sure what cause this. Here is a workaround, add a Content Editer web part (hide it in the page using SharePoint Designer) and add javascript code to reloade the page, but this will refresh the page again.
Thanks
Daniel Yang
TechNet Community Support
- Yanıt Olarak İşaretleyen ova c 03 Mayıs 2012 Perşembe 11:56
-
03 Mayıs 2012 Perşembe 11:56
Thanks so much for your kind help Daniel, I'll use this workaround then.
ceren