Redirecting URL with parameters to appropriate targets, filtering, or creation pages#177
Conversation
|
@moira-andrews gave feedback that this may be duplicating some already existing functionality within snex2 (used for the searchbar). |
|
while updating the target name search, can also test to make sure it will remove trailing spaces as well. |
|
@moira-andrews it is sanitized. I already tested this in an earlier version per @dahowell 's issue this morning. Tests: I tried searching for "23ixf " -> it goes to target creation and populates with "AT 2023ixf" (no trailing space). I tried searching for "SN 2024ehs " -> it takes directly to target page for "SN 2024ehs" (no trailing space). Seems to be working. |
|
We should take another look at this with the redirect url. Also, might be nice to be able to have ra, dec, and name, like |
Implementing the requests from @abostroem in #74
We add functionality to SNEx2 to allow users to navigate target access, filtering, and creation via the URL online. In particular, users can now access targets in a variety of ways via appending
/view_object?param1=...¶m2=...to the URL. The functionality includes:/view_object?name=23ixf(or2023ixforSN 2023ixf) will take you directly to the target page./view_object?ra=...&dec=...will take you directly to the target with the exactly matching RA/DEC.