Skip to content

Commit b4b23c0

Browse files
committed
fix(index): keep page parameters visible after submit
By switching the form method to get the url will now have all paramters necessary in order to share the search results. The search works as before including the Example: Entering "file:" in the search box and hitting the "Search" button - URL Before http://localhost:8080/exist/apps/fundocs/index.html? - URL After http://localhost:8080/exist/apps/fundocs/index.html?q=file%3A&action=search&type=name
1 parent 758d188 commit b4b23c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/xar-resources/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<div data-template="templates:surround" data-template-with="templates/page.html" data-template-at="main">
33
<h1>XQuery Function Documentation</h1>
4-
<form id="fun-query-form" name="f-query" class="form-horizontal" action="?" method="POST">
4+
<form id="fun-query-form" name="f-query" class="form-horizontal" action="?" method="GET">
55
<div class="row mb-3">
66
<label class="col-form-label col-md-2 hidden-xs">Search</label>
77
<div class="col-md-4 col-xs-12">

0 commit comments

Comments
 (0)