Pla 1641

Added "ref" support as optional url parameter
WAIT FOR QA
What would you say about adding a test for it?