You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if visiting /things/add or /things/newwould be a working link to the add things page.
Currently there is no way for addons to link directly to the "add new things" page. The user has to go to the things overview, and then click on the (+) button. (If there is a way to open the page through JS for addons then I'm all ears).
With this in mind perhaps /things/add_thing and /things/add_group would be better.
Maybe similar paths for /logs/add could exist?
For rules this already works; it's possible to visit /rules/new
The text was updated successfully, but these errors were encountered:
I generally try to avoid verbs in URLs in order to keep them RESTful. Opening the form using JavaScript sidesteps the issue of choosing a URL for the add thing form, but I'm not sure if that's possible from an add-on.
If a URL really is needed then /things/new is probably better than /things/add because "new" is a not a verb and makes a bit more sense as the name of a resource. I'm guessing that would need to be implemented in the client-side router.
One other thing to be aware of is what happens when you click the back button from the add thing/add log form, i.e. whether it goes back to the things/logs page, or back to the add-on's UI.
User story: As an add-on developer, I want to be able to link to the forms to create a thing or log so that I can link to the existing forms from my add-on UI, rather than having to create a new one.
It would be great if visiting
/things/add
or/things/new
would be a working link to the add things page.Currently there is no way for addons to link directly to the "add new things" page. The user has to go to the things overview, and then click on the (+) button. (If there is a way to open the page through JS for addons then I'm all ears).
With this in mind perhaps
/things/add_thing
and/things/add_group
would be better.Maybe similar paths for
/logs/add
could exist?For rules this already works; it's possible to visit
/rules/new
The text was updated successfully, but these errors were encountered: