Hi

This module works very good. As per the Documentation in README.TXT in the module.
"
/node/1.json is the direct path can that be made for the URL Alias of the same. say content/welcome.json returns the same as node/1.json ?
"

Comments

klausi’s picture

Status: Active » Fixed

No, that does not work. content/welcome.json is not registered as URL alias, so you would have to add an URL alias "content/welcome.json" that points to "node/2.json". That works :-)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Sjarsena’s picture

I did what you said. I have article/example.json and node/2.json and I still get nothing when trying to get the node using URL alias.

alibama’s picture

Issue summary: View changes

that's not a great solution - I'm thinking perhaps we might be able to use rules to create that? I'll test and get back on it

jaskaran.nagra’s picture

Needs to be reopened....

jaskaran.nagra’s picture

Status: Closed (fixed) » Active

Reopening ... Not fixed

It seems pretty straight forward though.. just need to call drupal_get_normal_path() IMO on the alias before the processing begins....

jaskaran.nagra’s picture

I have written a module, which is currently in sandbox stage, for this.
https://www.drupal.org/sandbox/jaskaran.nagra/2470461

Please review and help towards making it a full project.
https://www.drupal.org/node/2470483

alibama’s picture

i'll test in the next couple hours - thanks jaskaran.nagra!

jaskaran.nagra’s picture

Status: Active » Needs review