(function ($) {

    $(function() {
        /**
         * Adds links to songbook references on song pages.
         */
        $( "div.field-name-field-songbook-references > div > div" ).wrap(function() {
            // return "<a href='/songbook/" + $( this ).contents().text().replace(/([A-Z].*)(\s|\-)([0-9].*)/, '$1') + "'></a>";
            return "<a href='/?q=songbook/" + $( this ).contents().text().replace(/([A-Z].*)(\s|\-)([0-9].*)/, '$1') + "'></a>";
        });
    });

}(jQuery));

(function ($) {

    $(function() {
        /**
         * Adds links to songbook references on song pages.
         */
        $( "div.field-name-field-songbook-references > div > div" ).wrap(function() {
            return "<a href='/songbook/" + $( this ).contents().text().replace(/([A-Z].*)(\s|\-)([0-9].*)/, '$1') + "'></a>";
        });
    });

}(jQuery));

Change jQuery for songbook references to use clean urls.
Change jQuery for songbook references to use clean urls.
