Convert relative URL to absolute

Hi - I'm looking for the cleanest way to convert a relative URL to an absolute URL in a node (I have the relative URL and the base URL) It looks like I can't include node modules (such as url). What's the best way to do this?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.