Skip to content

Commit

Permalink
Fix failing paginated modal links
Browse files Browse the repository at this point in the history
  • Loading branch information
ffont committed Jan 16, 2025
1 parent 8f29b21 commit c6c1f26
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion freesound/static/bw-frontend/src/components/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ const bindConfirmationModalElements = (container) => {

// Logic to bind default modals

const handleDefaultModal = (modalUrl, modalActivationParam, element) => {
const handleDefaultModal = (modalUrl, modalActivationParam, atPage) => {
if ((atPage !== undefined) && modalUrl.indexOf('&page') == -1){
modalUrl += '&page=' + atPage;
}
handleGenericModal(modalUrl, undefined, undefined, true, true, modalActivationParam);
}

Expand Down

0 comments on commit c6c1f26

Please sign in to comment.