question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Documentation with links to fragment identifer don’t work

See original GitHub issue

Bug, feature request, or proposal:

Bug

What is the expected behavior?

On the page https://material.angular.io/components/input/overview, the links for:

Should link to:

What is the current behavior?

On the page https://material.angular.io/components/input/overview, the links generated point to (notice input rather than form-field):

Specifically, this is the “current page” + “fragment identifier”. In the actual generated html, the contents are:

  • <a href="/components/input/overview#floating-label" class="docs-markdown-a">form field label documentation</a>
  • <a href="/components/input/overview#error-messages" class="docs-markdown-a">associate error messages</a>

What are the steps to reproduce?

You can only see the issue on https://material.angular.io/components/input/overview. The github page hosted at https://github.com/angular/material2/blob/master/src/lib/input/input.md seems to work correctly.

What is the use-case or motivation for changing an existing behavior?

The link does not exist

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

6.4.7+ according to docuementation

Is there anything else we should know?

This seems like an issue when the markdown code is moved into https://material.angular.io. I believe the markdown detects the link is on the same domain, and somehow messes up the domain-relative link.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jelbourncommented, Oct 3, 2018

Right, it looks like it just hasn’t been published yet.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 9, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Not possible to add link with fragment identifier #1049 - GitHub
Yes at present wagtail doesn't support creating internal links which include a fragment identifier, whether via the rich text editor or the PageChooserPanel ......
Read more >
Excel hyperlink to html with fragment identifier does not work
I want a cell in an Excel spreadsheet to link to an HTML document using a URL with a fragment identifier (i.e., hash-mark,...
Read more >
6 Things You Should Know About Fragment URLs
1. A Fragment URL Specifies A Location Within A Page Any URL that contains a # character is a fragment URL. The portion...
Read more >
Links in HTML documents - W3C
Syntax of anchor names; Nested links are illegal; Anchors with the id ... any URI addressing this anchor must include the name as...
Read more >
Text fragments - MDN Web Docs - Mozilla
Text Fragments allow you to link directly to a specific portion of text in a web document, without requiring the author to annotate...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found