Recent Topics

Hashtag in href="#" or anchor links to the skin and causes therefor an errorpage

Started by on Sep 13, 2017 – Contents updated: Sep 28, 2017

Sep 13, 2017 14:36    

Hello,

I tried to make use of bootstrap*s Tooltips


<div class="container">
  <h3>Popover Example</h3>
  <ul class="list-inline">
    <li><a href="#" title="Header" data-toggle="popover" data-placement="top" data-content="Content">Top</a></li>
    <li><a href="#" title="Header" data-toggle="popover" data-placement="bottom" data-content="Content">Bottom</a></li>
    <li><a href="#" title="Header" data-toggle="popover" data-placement="left" data-content="Content">Left</a></li>
    <li><a href="#" title="Header" data-toggle="popover" data-placement="right" data-content="Content">Right</a></li>
  </ul>
</div>

<script>
$(document).ready(function(){
    $('[data-toggle="popover"]').popover();   
});
</script>

But href="#" is interpreted by b2e as Link to Skin.
This bug also exists when using anchors plugin (http://forums.b2evolution.net/anchor-tag-is-posts#c109529)

Sep 14, 2017 09:05

Hi @saunders, this has been already reported in the past. This is the last report we got some time ago: http://forums.b2evolution.net/anchor-tag-is-posts

Please note that we are not considering this as a bug. This behavior is a downside of a feature meant to make skin development easier. However, inserting anchors or # into posts is perfectly possible by the use of the short links syntax. i.e. ((#anchorname link text)) or ((#)).

We are still looking for a solution that let users to insert direct html without removing the skin development feature.

Regards!

Sep 14, 2017 12:02

@mgsolipa shortlink works, but calls the the ful URL

(Please delete the following image)

Sep 18, 2017 22:54

Yes @saunders, printing the full URL in addition to the anchor makes sense. It's actually exactly the same as printing just the anchor.

Regards!

Sep 26, 2017 20:45

@mgsolipa one big problem: when using several slugs ((#anchor link text)) causes each slug added to the url.
See screenshot.

Sep 27, 2017 06:24

@saunders I'm not able to reproduce what you're reporting. Please confirm what version of b2evolution are you using, and also what skin did you use as base.

In addition to that, please confirm that what you're trying to do is the case I reproduced in the screenshot below.

Regards!

Sep 27, 2017 12:40

@mgsolipa thanks for your answer. I tried to reproduce the problem in other than the quoted page and could not.
But in this page I tried several things but could not avoid that all slugs are put together in one Url - see screenshots below
(This happens on a blog using Bootstrap Blog, b2e 6.9.3)

Sep 28, 2017 06:40

@saunders all right, I can't see the slugs separator in the links of any of your screenshots due to the color squares. Is it a comma?

Please confirm, did you take those screenshots from a "Preview" of the posts?

Sep 28, 2017 13:34

@mgsolipa it is a comma, and yes, the screenshots were taken from a "Preview" of the post

This post has 1 feedback awaiting moderation...


Form is loading...

blogging tool – This forum is powered by b2evolution CMS, a complete engine for your website.