ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Odd issue with path-link

May 16, 2013 1:37pm

Subscribe [2]
  • #1 / May 16, 2013 1:37pm

    Riverboy

    2993 posts

    I use this code in my index page:

    <button type="button" class="small"><h4><a href="http://{path=template_group}">News</a></h4><p></button><br />
    

    It works just fine when using Chrome, but when using Firefox, the link doesnt work?

    latest EE with MSM

  • #2 / May 18, 2013 11:19pm

    travisb

    172 posts

    What does that button code look like in the page source when it’s written out?

  • #3 / May 19, 2013 7:54am

    Riverboy

    2993 posts

    Same in both browsers:

    <button type="button" class="small"><h4><a href="http://www.example.com/forums">Forums</a></h4></button>
  • #4 / May 19, 2013 9:53am

    travisb

    172 posts

    Thanks - you’ll need to use javascript / jquery / etc.. to make the link work consistently with button type=“button… For example:

    <pre><code><button type=“button” onclick=”[removed]=‘http://www.example.com’”>

    Forums

    </button></code></pre>

    ([removed] above would be: window dot location)

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases