SuLab / biogps_core

http://biogps.org/
GNU General Public License v3.0
0 stars 0 forks source link

"Test" feature on plugin creation reports "INVALID URL" when using {{MGI}} #1

Open JTFouquier opened 8 years ago

JTFouquier commented 8 years ago

So far I've only seen this for plugins that use {{MGI}} (e.g., http://biogps.org/plugin/120/international-mouse-strain-resource-jackson-laboratory/, http://biogps.org/plugin/30/mouse-genome-informatics-mgi/). I haven't extensively tested this for other keywords.


JTFouquier commented 8 years ago

Validated this bug. It could happen on any non-human species-specific keyword. To solve this issue, we need to pass proper species parameter to this ajax call (""#btn-test_url click" in "src/assets/js2/biogps/controllers/pluginform_controller.js)

{{{ /plugin/test/?url=http://www.google.com/search?q={{MGI}}&geneid=1017&species=mouse }}}

Related issue, should species selector be switched to "mouse" only automatically, when "MGI" keyword is entered in the URL template box? It was available, but seems not being ported to this new plugin form.


Original comment by: Chunlei Wu