Skip to content

Is there a way to grab the current URL in a nextjs 13 Layout component #56572

Closed Locked Answered by leerob
luis-garcia17 asked this question in App Router
Discussion options

You must be logged in to vote

Please see #43704 (comment) for a detailed answer.

Replies: 5 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@MahmoudKafrawy
Comment options

@ivan-kleshnin
Comment options

@JKarlavige
Comment options

Comment options

You must be logged in to vote
2 replies
@Yogeshthangm
Comment options

@SH20RAJ
Comment options

Comment options

You must be logged in to vote
4 replies
@jheng-jie
Comment options

@basinhr
Comment options

@klincoder
Comment options

@jheng-jie
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by leerob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet