Title: Get current post&#8217;s Permalink in Gutenberg
Last modified: August 22, 2018

---

# Get current post’s Permalink in Gutenberg

 *  Resolved [Kevin Bazira](https://wordpress.org/support/users/kevinbazira/)
 * (@kevinbazira)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/get-current-posts-permalink-in-gutenberg/)
 * Hi folks,
 * Please guide me on how to use **withSelect()** to get current post’s Permalink
   in Gutenberg.
 * Or if you have any other way I can get current post’s Permalink in Gutenberg,
   I’ll be happy to try it out.
 * Thanks 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Corey McKrill](https://wordpress.org/support/users/coreymckrill/)
 * (@coreymckrill)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/get-current-posts-permalink-in-gutenberg/#post-10614930)
 * Hi [@kevinbazira](https://wordpress.org/support/users/kevinbazira/),
 * The first code sample in this doc in the Gutenberg repository has an example 
   of using `withSelect()` and getting a post link:
 * [https://github.com/WordPress/gutenberg/blob/576872f2686d71610299a8c158a1ded1b83ab132/docs/blocks/creating-dynamic-blocks.md](https://github.com/WordPress/gutenberg/blob/576872f2686d71610299a8c158a1ded1b83ab132/docs/blocks/creating-dynamic-blocks.md)
 *  Thread Starter [Kevin Bazira](https://wordpress.org/support/users/kevinbazira/)
 * (@kevinbazira)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/get-current-posts-permalink-in-gutenberg/#post-10616305)
 * Hi [@coreymckrill](https://wordpress.org/support/users/coreymckrill/),
 * Thanks for the reference link.
 * [@chrisvanpatten](https://wordpress.org/support/users/chrisvanpatten/) shared
   with me exactly what I was looking for;
 * `select('core/editor').getPermalink()` wrapped in the `withSelect()`.
 * And one can also run `wp.data.select('core/editor').getPermalink()` directly 
   in the console to get current post’s Permalink in Gutenberg.
 * Thanks again to both of you. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Get current post’s Permalink in Gutenberg’ is closed to new replies.

 * ![](https://ps.w.org/gutenberg/assets/icon-256x256.jpg?rev=1776042)
 * [Gutenberg](https://wordpress.org/plugins/gutenberg/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gutenberg/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gutenberg/)
 * [Active Topics](https://wordpress.org/support/plugin/gutenberg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gutenberg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gutenberg/reviews/)

## Tags

 * [permalink](https://wordpress.org/support/topic-tag/permalink/)

 * 2 replies
 * 2 participants
 * Last reply from: [Kevin Bazira](https://wordpress.org/support/users/kevinbazira/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/get-current-posts-permalink-in-gutenberg/#post-10616305)
 * Status: resolved