Changeset 29982


Ignore:
Timestamp:
Oct 10, 2014, 2:47:21 PM (9 years ago)
Author:
JanisV
Message:

Fixed processing question_mark_in_urls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Fotorama/template/fotorama-content.tpl

    r29980 r29982  
    3737                history.replaceState(null, null, fotorama.activeFrame['url']);
    3838                {else}
    39                 history.replaceState(null, null, fotorama.activeFrame['url']+'&slideshow=');
     39                history.replaceState(null, null, fotorama.activeFrame['url']+(fotorama.activeFrame['url'].indexOf('?')==-1 ? '?' : '&')+'slideshow=');
    4040                jQuery('#slideshow .browsePath a').attr('href', fotorama.activeFrame['url']);
    4141                {/if}
    4242
    43                 jQuery('a.fotorama__info-icon').attr('href', fotorama.activeFrame['url']+'&slidestop=');
     43                jQuery('a.fotorama__info-icon').attr('href', fotorama.activeFrame['url']+(fotorama.activeFrame['url'].indexOf('?')==-1 ? '?' : '&')+'slidestop=');
    4444
    4545                jQuery('#slideshow .showtitle').text(fotorama.activeFrame['caption']);
     
    8585              history.replaceState(null, null, fotorama.activeFrame['url']);
    8686              {else}
    87               history.replaceState(null, null, fotorama.activeFrame['url']+'&slideshow=');
     87              history.replaceState(null, null, fotorama.activeFrame['url']+(fotorama.activeFrame['url'].indexOf('?')==-1 ? '?' : '&')+'slideshow=');
    8888              jQuery('#slideshow .browsePath a').attr('href', fotorama.activeFrame['url']);
    8989              {/if}
Note: See TracChangeset for help on using the changeset viewer.