Skip to content

Commit 526252f

Browse files
authored
Merge pull request #69 from mcneel/will/template-solve-url
Set solve url dynamically, instead of with view engine
2 parents 51bf5e6 + 245c422 commit 526252f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/definition.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ function init() {
165165
*/
166166
async function compute() {
167167
// construct url for GET /solve/definition.gh?name=value(&...)
168-
const url = new URL('/solve/{{name}}', window.location.origin)
168+
const url = new URL('/solve/' + data.definition, window.location.origin)
169169
Object.keys(data.inputs).forEach(key => url.searchParams.append(key, data.inputs[key]))
170170
console.log(url.toString())
171171

0 commit comments

Comments
 (0)