Tell me, please, how can I add an anchor to a page whose address already contains the # character? For example, the address is http://nnn.mmm/#/MyPage . I need to add the anchor #yakor to this page so that the link http://nnn.mmm/#/MyPage#yakor correctly displayed.

  • tried to do it yourself? If you make a link <a href="#yakor"> anchor </a> then your anchor will change to #yakor - HELO WORD
  • one
    in case of <a href="#yakor"> go to the main page - Olga
  • Why do you need it? - Dmitriy Kondratiuk
  • There is a table with the n-th number of records, each of which can be edited. the form for editing is located at the top of the page and is created only after clicking on the "edit" button; a transition to this form is accordingly desirable. You can, of course, solve this with a new modal window, but you are interested in the question of the anchor - Olga
  • one
    jsfiddle.net/5c9kky2n If it works, I will issue it as an answer later. While running away on business. - ReinRaus

1 answer 1

Use instead of the url type (everything that is recognized after # as an anchor):

 http://nnn.mmm/#/MyPage.html#anchor 

If you use the hash as a path, use the url below:

 http://nnn.mmm/%23/MyPage.html#anchor