Skip to content

Commit 245c422

Browse files
committed
Set solve url dynamically, instead of with view engine
Grasshopper file name set in one place - easier to tweak after "saving source code"
1 parent 51bf5e6 commit 245c422

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)