Generating an absolute node URL from its node id
I think the question is self explanatory. I got a node ID and I need to create its absolute URL somehow. I can do this but (I think) this won’t work every where in the site:
<a href="?q=node/node-id">Node Title</a>
Please correct me if I am wrong.
Is there a function that I can give the node id and returns me back the absolute path of it?
This article was republished from its original source.
Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.