Forum Discussion
scaffnull
Sep 02, 2022Brass Contributor
Hyperlinks - Link to a specific location on the page (with the same URL)
Hi,
I have two pages in my SharePoint. And I would like to have a hyperlink on page1 to page2, but instead of having the hyperlink open up at the top of the page, I would like it to open up at a specific location on the page.
See image below:
In this case I would like to have a hyperlink on "Link this to number 1" to open up to "Link test 1 here". So from Test 1 --> Link here
This is the same two pages.
In this case I would like to have a hyperlink on "Link this to number 2", and have that open at "Link test 2 here".
These are both same pages.
Is this possible even if "Link here" page has the same URL?
Thankful for any suggestions.
scaffnull Yes, it is possible, you can use text anchors/links in "Text" web part for this. Follow this:
- Go to Link here page & make "Link test 1 here" as a heading (Heading 1 or 2 or 3) instead of Normal text:
- Republish the page, navigate to heading and mouse hover over the heading, you will get the link to heading:
- You can right click on the link icon & "Copy link address" OR just click on link icon & in browser URL you can find direct URL to this heading. Something like this:
https://contoso.sharepoint.com/sites/spconnect/sitepages/testmodernpage.aspx#link-test-1-here
- Note # part of above URL. Use this URL on "Test 1" page to link it to second page:
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
scaffnull Yes, it is possible, you can use text anchors/links in "Text" web part for this. Follow this:
- Go to Link here page & make "Link test 1 here" as a heading (Heading 1 or 2 or 3) instead of Normal text:
- Republish the page, navigate to heading and mouse hover over the heading, you will get the link to heading:
- You can right click on the link icon & "Copy link address" OR just click on link icon & in browser URL you can find direct URL to this heading. Something like this:
https://contoso.sharepoint.com/sites/spconnect/sitepages/testmodernpage.aspx#link-test-1-here
- Note # part of above URL. Use this URL on "Test 1" page to link it to second page:
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
- scaffnullBrass Contributorganeshsanap Thank you very much! Worked as a charm 🙂