erikringsmuth / app-router

Router for Web Components
https://erikringsmuth.github.io/app-router/
MIT License
610 stars 83 forks source link

GET form submission parameter not passed #113

Open teckays opened 9 years ago

teckays commented 9 years ago

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?

erikringsmuth commented 9 years ago

Maybe this?

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

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