openphacts / explorer2

Ember JS web application used for browsing the Open PHACTS Discovery Platform
MIT License
2 stars 1 forks source link

SMILES propagation to editor drops triple bonds #27

Open egonw opened 6 years ago

egonw commented 6 years ago

When I was playing with the new Explorer (congrats with the release!), I picked acetonitrile

image

I then tried the link for the given SMILES which opens a Ketcher editor: http://explorer.openphacts.org/compounds/draw?smiles=CC%23N Note how the hash (#) in the SMILES of this compound (CC#N) is escaped. However, the editor shows ethane (SMILES: CC):

image

After a bit of HTML browsing I found that the the Ketcher is in an iframe with the following URL: http://explorer.openphacts.org/ketcher/ketcher.html?smiles=CC

So, this analysis suggests that somewhere the # part is lost (probably because in URLs it is the "local" part, refering to a location in the document?