alist / domoapis

0 stars 0 forks source link

Get advice - clicking on (long) url containing token and org code prompts for code and advice request specific code #8

Closed harishnk closed 10 years ago

harishnk commented 10 years ago

Steps to reproduce the error: Open up localhost:3000/mit/getadvice while running domo on localhost Put in the code (mit5) and your advice request On hitting 'submit', you are taken to a screen that displays the long url at the bottom e.g. https://oh.domo.io/mit/advice/52c879b6543c0b0000000008?token=2d4c59f0436649488f20357b710caca1&code=mit5

On clicking this, you are taken to a screen that asks for 'code' and 'advice request code' both of which are in the URL.

The user should directly be taken to the advice since the url already contains the elements necessary for getting past this screen.

alist commented 10 years ago

this isn't really a bug, but it should be an asana task

nobody has programmed autopopulation yet

the server just needs to pass url req.params as env vars into the jade template to be saved as local variables and pre-populated if available, thus hiding unneeded input fields

added: "autopopulate supportee getadvice token and code fields" to webdev