Getting an error on a page route using a parameter.
Setup is:
Route: /app/admin/
Page route: /business/:business_id?
Typing the url into a browser directly (/app/admin/business/1) everything works.
However,
Linking to this page, the UI selector gives:
dmx-on:click="browser.goto(./business/{{business_id}})"
which produces the following error:

What is the proper route syntax?
Thanks!
Question - why not use href?
As for the syntax:
dmx-on:click="browser.goto('./business/' + business_id)
1 Like
No reason…just easy.
Generated a table with rows, and added a click event to the row.
1 Like
Need a bug report to help the selection of the route improve?
brad
5
Why can’t you use the Dynamic Attribute --> Link?
Because when using a route, the route selector should be used…ya?
The syntax Teodor provided is what I needed, but the editor does not insert that syntax.
I’m all set, unless a bug report is desired by the team.
George
7
I made this a bug report. Yes the syntax should be the one that Teodor pointed out only.
George
9
This was solved some time ago