Skip to content

Instantly share code, notes, and snippets.

@cristiroma
Created February 9, 2026 11:44
Show Gist options
  • Select an option

  • Save cristiroma/b59f1a73dfead635fec708dc26be4585 to your computer and use it in GitHub Desktop.

Select an option

Save cristiroma/b59f1a73dfead635fec708dc26be4585 to your computer and use it in GitHub Desktop.
Drupal extract node URLs using SQL Query
SELECT CONCAT('https://example.org', b.alias) AS url FROM node a INNER JOIN path_alias b ON CONCAT('/node/', a.nid) = b.path GROUP BY url;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment