Hello, if I use this module for creating anchor url, it generate only url with name of flag.

Example:
I have a page with url mydomain.com/town/about-london
At this page is h3 title "Food", I create flag there with name Food.

Then at the top of the page I create short anchor link to place where is talking about Food (h2 Food).

After saving page I see short link url with shape mydomain.com/Food and not like this mydomain.com/town/about-london#Food

What missing?

Comments

mpark created an issue. See original summary.

rajab natshah’s picture

Hi mpark,

Yes that is the right format
links and anchors

<H1>Table of Contents</H1>
<P><A href="#section1">Introduction</A><BR>
<A href="#section2">Some background</A><BR>
<A href="#section2.1">On a more personal note</A><BR>
...the rest of the table of contents...
...the document body...
<H2><A name="section1">Introduction</A></H2>
...section 1...
<H2><A name="section2">Some background</A></H2>
...section 2...
<H3><A name="section2.1">On a more personal note</A></H3>
...section 2.1...

Anchors links are Internal links to link in the same page, No need to add the full link Except that you want the user to link the link then go to a section in the page:

For Example:

Given that you want to install the "anchor_link" module
When you click on "https://www.vardot.com/blog/ckeditor-anchor-link#installing" link
Then you should see "Installing CKEditor Anchor Link on Drupal 8" right a way after you click the link
When you click on "https://www.vardot.com/blog/ckeditor-anchor-link"
And you Scroll 1, 2, or 3 times
Then you should see "Installing CKEditor Anchor Link on Drupal 8"

I love how this site is doing https://getcomposer.org/doc/00-intro.md
Desktop screenshot generate a whole url address

If you go to this link https://www.w3.org/TR/html4/struct/links.html#h-12.1 you will directly to the 12.1 Introduction to links and anchors section.

12.2 The A element

<!ELEMENT A - - (%inline;)* -(A)       -- anchor -->
<!ATTLIST A
  %attrs;                              -- %coreattrs, %i18n, %events --
  charset     %Charset;      #IMPLIED  -- char encoding of linked resource --
  type        %ContentType;  #IMPLIED  -- advisory content type --
  name        CDATA          #IMPLIED  -- named link end --
  href        %URI;          #IMPLIED  -- URI for linked resource --
  hreflang    %LanguageCode; #IMPLIED  -- language code --
  rel         %LinkTypes;    #IMPLIED  -- forward link types --
  rev         %LinkTypes;    #IMPLIED  -- reverse link types --
  accesskey   %Character;    #IMPLIED  -- accessibility key character --
  shape       %Shape;        rect      -- for use with client-side image maps --
  coords      %Coords;       #IMPLIED  -- for use with client-side image maps --
  tabindex    NUMBER         #IMPLIED  -- position in tabbing order --
  onfocus     %Script;       #IMPLIED  -- the element got the focus --
  onblur      %Script;       #IMPLIED  -- the element lost the focus --
  >

Start tag: required, End tag: required

Attribute definitions

name = cdata [CS]
    This attribute names the current anchor so that it may be the destination of another link. The value of this attribute must be a unique anchor name. The scope of this name is the current document. Note that this attribute shares the same name space as the id attribute.
href = uri [CT]
    This attribute specifies the location of a Web resource, thus defining a link between the current element (the source anchor) and the destination anchor defined by this attribute.
hreflang = langcode [CI]
    This attribute specifies the base language of the resource designated by href and may only be used when href is specified.
type = content-type [CI]
    This attribute gives an advisory hint as to the content type of the content available at the link target address. It allows user agents to opt to use a fallback mechanism rather than fetch the content if they are advised that they will get content in a content type they do not support.
    Authors who use this attribute take responsibility to manage the risk that it may become inconsistent with the content available at the link target address.
    For the current list of registered content types, please consult [MIMETYPES].
rel = link-types [CI]
    This attribute describes the relationship from the current document to the anchor specified by the href attribute. The value of this attribute is a space-separated list of link types.
rev = link-types [CI]
    This attribute is used to describe a reverse link from the anchor specified by the href attribute to the current document. The value of this attribute is a space-separated list of link types.
charset = charset [CI]
    This attribute specifies the character encoding of the resource designated by the link. Please consult the section on character encodings for more details.



mpark’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.