Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Anchor link points

New Here ,
Jan 23, 2023 Jan 23, 2023

I am creating some pages for education purposes and to make it more friendly I want to set up some anchor links for a better navegation. To do so, I did a sumarry with 10 contents and bellow of which section a create a link to scroll up back to summary. 

Inicially it seemed really good, but then I realized that some buttons were not working well. The issue is that, when the user click, e.g on the button to scroll up and scroll down without chose one topic on the summay the button will not work anymore becouse the webpage name will be still the same. 

Which means that, once you ckick in a link/button that link will not work anymore untill you clique on another one. 

 

How can I solve this problem?

Kind regards

Thiago 

1.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 23, 2023 Jan 23, 2023

The sections of your web pages will have IDs that are used for anchor links.

 

If I understand correctly, it sounds like you're adding the link to the page and not the anchor link.

 

If you publish your webpage, you can hover over a section header and a link icon will appear. If you click on it, you can copy the anchor link (it will be the text of your section header preceded by a "#"). This anchor link uses the text that is assigned to a section of the page in the HTML as an ID. When it is part of the link, the browser should go to that portion of the page. Use the anchor link when editing your site to add either text that you can set as a link or add a button.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 26, 2023 Jan 26, 2023

Hi Myra, 

 

Thank you for your coments I really appreciate, however I believe that I had not expressed mylsef cleary enough. I know how to work with those anchor links, but if I am not mistaken, there is a opportunity for improviment. Please, have a look at the file enclosed, I collect some pictures to illustrate better. Then you will see that there is kind of a "bug" with it. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 26, 2023 Jan 26, 2023
LATEST

It looks like you have it set up correctly. The #summary part of the URL is a fragment identifier. It does indicate a particular part of your scrolling web page. When you scroll down the page, you would not expect the URL to update with that section's ID, but you would expect clicking on the buttons that are set to a fragment ID to scroll back up to that spot.

 

It seems like that may be a bug. Maybe @David__B can help.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines