How to use browser.goto with dynamic values?

I’m having trouble with a onclick redirect. It’s probably my fault but i can’t figure it out

Routing is: /tasks/:tasksid?

Doesn’t work:


browser1.goto(./tasks/{{task_id}}) SyntaxError: Unexpected token .
browser1.goto(./tasks/36) Error executing “browser1.goto(./tasks/36)” SyntaxError: Unexpected token . Error executing “browser1.goto(https://www.domain.com/club/tasks/36)” SyntaxError: missing ) after argument list


Works:
browser1.goto(./tasks) - works
direct in browser: https://www.domain.com/club/tasks/36 -works loads record 36

Confused!

4

Community Page
Last updated: