Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

Problem with button #36

Open
ddante1 opened this issue Jul 12, 2013 · 2 comments
Open

Problem with button #36

ddante1 opened this issue Jul 12, 2013 · 2 comments

Comments

@ddante1
Copy link

ddante1 commented Jul 12, 2013

I try to use this code in new article wiki:

<a  href="http://simlab.dyndns.org:9000/AllegroHandWiki/index.php/Allegro_Hand_Overview" class=" btn btn-success" >Learn more</a>

But firefox is not correct to interpret:

<p>&lt;a  href="<a href="http://simlab.dyndns.org:9000/AllegroHandWiki/index.php/Allegro_Hand_Overview" class="external free" rel="nofollow">http://simlab.dyndns.org:9000/AllegroHandWiki/index.php/Allegro_Hand_Overview</a>" class=" btn btn-success" &gt;Learn more&lt;/a&gt;
</p>

Is this a bug or I'm doing something wrong?

@waldyrious
Copy link
Contributor

This is not a bug in the strapping-mediawiki skin, it's how mediawiki works: some html tags are restricted for security reasons (see the relevant FAQ entry). In this case, an external link is meant to be inserted with the wikitext markup [http://example.com Link Title]. If you want to style it differently, you can add a <span> tag around it to host the class attribute.

That said, I'd suggest this issue to be closed as invalid.

@garrett
Copy link
Contributor

garrett commented Jul 12, 2013

The problem with wrapping a button with a span is that there's an area that doesn't activate. I should probably look into adding a tiny bit of JavaScript (jQuery really) that passes the clink to any anchors inside the button so it works as expected.

I was going to do this for oVirt.org, where we are using the span technique) but it slipped my mind, as it was before we had a bugtracker set up.

I'll leave this bug open and look back into this at the beginning of next week.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants