linkit icon indicating copy to clipboard operation
linkit copied to clipboard

Add ability specifify a anchor tag when linking somewhere

Open codyjames opened this issue 7 years ago • 6 comments

Sometimes you want to link to a specific section of a page/entry/etc.

codyjames avatar Sep 27 '18 21:09 codyjames

At minimum, this would be doable if an exception were added to the URL validation that didn't require a proper URL formatting if the string begins with a #.

proimage avatar Dec 23 '18 12:12 proimage

I think it would be nice if it could be an additional field. So you can still link to an entry but also to an anchor on the page of said entry.

codyjames avatar Jan 02 '19 17:01 codyjames

Thanks @codyjames Added support for this in 1.1.5

We decided to run with @proimage suggestion, unless people think there is a real use case for an Anchor link type? We feel it might be adding more layers of settings. Happy to reconsider though.

samhibberd avatar Jan 14 '19 18:01 samhibberd

@samhibberd I don't think that we need a new Anchor link type, but it would be nice to still be able to link to an anchor for a given entry or category. This ensures that URLs stay updated, handles translated versions for multi-sites, etc.

Just an optional anchor field that could be added would be great.

screen shot 2019-01-14 at 10 53 12 am

If the anchor field is populated, it gets appended to the entry or category url.

jsunsawyer avatar Jan 14 '19 18:01 jsunsawyer

Also, it might be worth considering query strings and coming up with a single solution for both.

jsunsawyer avatar Jan 14 '19 19:01 jsunsawyer

@jsunsawyer this could work nicely, we can look at this after we have got 3.1 support released.

samhibberd avatar Jan 15 '19 10:01 samhibberd