# Expand short link to Glide

**URL:** <https://community.glideapps.com/t/expand-short-link-to-glide/66837>\
**Category:** Ask for Help\
**Created:** [October 8, 2023, 9:27am UTC](https://community.glideapps.com/t/expand-short-link-to-glide/66837 "2023-10-08T09:27:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![slscustom.ru](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/slscustom.ru/32/77336_2.png) [@slscustom.ru](https://community.glideapps.com/u/slscustom.ru)\
**Post date:** [October 8, 2023, 9:27am UTC](https://community.glideapps.com/t/expand-short-link-to-glide/66837/1 "2023-10-08T09:27:01Z")

</div>

HI, everyone!

My customer exactly want to store link to site(object of service) by using short links from Yandex map service.  
Also his want to see map inside Glide App with objects.

They provide links like [https://yandex.ru/maps/-/CDUaELzY](https://yandex.ru/maps/-/CDUaELzY)  
If you go there in browser you can see full link [https://yandex.ru/maps/?ll=36.981793%2C55.760561&mode=search&sll=36.982528%2C55.762611&text=55.762611%2C36.982528&utm\_source=share&z=17](https://yandex.ru/maps/?ll=36.981793%2C55.760561&mode=search&sll=36.982528%2C55.762611&text=55.762611%2C36.982528&utm_source=share&z=17)

How can i obtain this full link in glide to parse GEO?  
I have try this JS

```auto
async function expandYandexMapLink(p1) {
  try {
    // Load Axios using async import from skypack.dev
    const { default: axios } = await import("https://cdn.skypack.dev/axios");

    // Make an HTTP GET request to the short Yandex Maps link
    const response = await axios.get(p1);

    // Get the final URL after redirection
    const finalUrl = response.request.res.responseUrl;

    return finalUrl;
  } catch (error) {
    return "Error: " + error.message;
  }
}

// Call the function with the predefined 'p1'
const result = await expandYandexMapLink(p1);

// Return the result
return result;

```

But unfortunately receiving “Error: Network Error” as return

Please, someone help me ?  
Thanks!  
p.s. Main task to fetch full link by short link and see full link in Glide column

---

<div class="post-metadata">

**Author:** ![Christopher\_Geyer](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/christopher_geyer/32/85766_2.png) [@Christopher\_Geyer](https://community.glideapps.com/u/Christopher_Geyer)\
**Post date:** [October 9, 2023, 9:16am UTC](https://community.glideapps.com/t/expand-short-link-to-glide/66837/2 "2023-10-09T09:16:33Z")

</div>

Mein 1. Schritt wäre mehr über den Fehler herauszufinden.  
Hattest Du das schon probiert!?

> async function expandYandexMapLink(p1) {  
> try {  
> const { default: axios } = await import(“[https://cdn.skypack.dev/axios](https://cdn.skypack.dev/axios)”);  
> const response = await axios.get(p1);  
> const finalUrl = response.request.res.responseUrl;  
> return finalUrl;  
> } catch (error) {  
> console.error(“Error:”, error.message);  
> if (error.response) {  
> console.error(“Response Status:”, error.response.status);  
> console.error(“Response Data:”, error.response.data);  
> }  
> return "Error: " + error.message;  
> }  
> }
