Skip to main content
Post Merged (destination) from drupal.stackexchange.com/questions/242968/…
edited title
Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

How can I get the nid of a node ID from thea path alias?

deleted 12 characters in body; edited tags; edited title
Source Link
leymannx
  • 18.8k
  • 6
  • 72
  • 126

How can I get the nid of a node from the pagepath alias?

I want to be able to get the nid but the only information I have is http://example.com/this-is-the-alias.

Is there a drupal functionway to get either the internal path of /node/* for that alias if I am not on the page? Or is there a way to just get the nid from that alias right away?

How can I get the nid of a node from the page alias?

I want to be able to get the nid but the only information I have is http://example.com/this-is-the-alias.

Is there a drupal function to get either the internal path of /node/* for that alias if I am not on the page? Or is there a way to just get the nid from that alias right away?

How can I get the nid of a node from the path alias?

I want to be able to get the nid but the only information I have is http://example.com/this-is-the-alias.

Is there a way to get either the internal path of /node/* for that alias if I am not on the page? Or is there a way to just get the nid from that alias right away?

edited tags
Link
Adrian Cid Almaguer
  • 18.5k
  • 14
  • 79
  • 133
deleted 12 characters in body
Source Link
Adrian Cid Almaguer
  • 18.5k
  • 14
  • 79
  • 133
Loading
Tweeted twitter.com/StackDrupal/status/719738618319921152
added 16 characters in body; edited tags
Source Link
BrandenB171
  • 1.1k
  • 4
  • 15
  • 27
Loading
Source Link
BrandenB171
  • 1.1k
  • 4
  • 15
  • 27
Loading