I have this problem in getting a value from URL.
First I've created an url alias for a certain articles.
In example, from this
/node/899 the alias I've created it's
Then when I use
arg(0) which is to get the value of first parameter which is "news" I get a result "node". The url alias works.