app-router icon indicating copy to clipboard operation
app-router copied to clipboard

GET form submission parameter not passed

Open teckays opened this issue 10 years ago • 1 comments

I have the following use case

<app-route path="/search/"></app-route>
<form action="/search/?q={{q}}" method="get">
    <paper-input-decorator>
        <input is="core-input" value="{{q}}">
    </paper-input-decorator>
</form>

when I type in a query and submit the form, the urls is: /search/?

if:

<form action="/search/{{q}}" method="get">
...

If I type in "foo", url is: search/foo?

How to make the form action to look /search/q=foo?

teckays avatar Apr 10 '15 11:04 teckays

Maybe this?

<form action="/search/q={{q}}" method="get">

This might be more of a Polymer template syntax question...

erikringsmuth avatar Apr 12 '15 15:04 erikringsmuth