26 янв. 2024 г. · What you could do is make your own hook that has a useState to store the URL, then you set it using the window.location object from within a ... |
4 мар. 2024 г. · I know I can get access to the params using params and searchParams arguments in page files, but I want the query in the layout file and it doesn't work there. |
27 июн. 2024 г. · There's no official way to access the full url but it can be done thru asynclocalstorage, along with other request context properties. But isn't ... |
15 авг. 2023 г. · I am making a API call which is taking the URL as parameter. The data fetch from the API is used as metadata for the app. |
14 сент. 2022 г. · What's the official way of getting the current url without the query params? const {query, asPath, pathname} = useRouter(); |
5 июн. 2024 г. · I want to know the origin of request, like the domain name or the url of the website which posts that data. I'm a noob, please help me |
10 нояб. 2023 г. · I have a server component page that needs url data in order to fetch specific data from api and render it. Is there a way around this issue, ... |
15 янв. 2024 г. · The only possible way I have found so far is by configuring a middleware and getting the query params via next/headers. But there should be an ... |
9 июл. 2023 г. · Im using app router and i have app/layout.js. I want to get the current page, and route and based on that to load different root layout. |
17 сент. 2024 г. · Hashes are only available in browser so using window.location.hash should work fine. They are not sent to server so even if you read the url in the component, ... |
Novbeti > |
Axtarisha Qayit Anarim.Az Anarim.Az Sayt Rehberliyi ile Elaqe Saytdan Istifade Qaydalari Anarim.Az 2004-2023 |