Changeset 7226


Ignore:
Timestamp:
10/21/18 20:34:37 (6 years ago)
Author:
Leif-Jöran
Message:

Fixed the embedded mode search button

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SRUAggregator/trunk/src/main/resources/assets/js/pages/aggregatorpage.jsx

    r7221 r7226  
    387387                        });
    388388                        var newurl = !query ? "#" :
    389                                 (window.MyAggregator.URLROOT + "?" + encodeQueryData({queryType:queryTypeId, query:query, mode:'search'}));
     389                                (window.MyAggregator.URLROOT + (this.props.embedded ? "/embed" : "/") + "?" + encodeQueryData({queryType:queryTypeId, query:query, mode:'search'}));
    390390                        return ( <a className={btnClass} style={{paddingTop:13}}
    391391                                        type="button" target="_blank" href={newurl}>
Note: See TracChangeset for help on using the changeset viewer.