HistoryAtState/hsg-shell

Submitting search from date filter requests $app/search URL

Closed this issue · 0 comments

When hitting return from inside the date filter, the submission is sent to $app/search, instead of /exist/apps/hsg-shell/search, meaning that app:fix-links needs to be called on (or above) the <form> element, so that the @action attribute is fixed. This appears when I view the source of the /search page in my browser:

<form method="get" action="$app/search" class="filter-form" id="dateFilter">
    <div class="hsg-width-one-half">
        <div class="hsg-panel">
        <!-- snip -->

An example of the malformed URL that results from submitting this form is: http://localhost:8080/exist/apps/hsg-shell/$app/search?q=taiwan&within=documents&start_date=1969-01-01&end_date=1970-01-01