How to Get Magento 2 URL in JS File

Foramkanada26 Sep, 2022Technology

The post shows the technique to get Magento 2 URL in the JS document. For instance, you are trapped in a circumstance where you need to get url from .js record and add it with your module regulator connect from. Indeed, it is absurd to expect to utilize the block to get the url. You might expect to get the URL in JS record and it isn't prescribed to utilize the static URL similarly as with time, the URL key might change and the static worth will give you the mistake.

Recent Profiles

TY LE KEO

Ty Le Keo

View Profile

Loreform

Loreform

View Profile

The Beauty Bus- Abilene

The Beauty Bus- Abilene

View Profile

Pammella Moraes

Pammella Moraes

View Profile

All In One Bounce

All In One Bounce

View Profile

RB33 DE

Rb33 De

View Profile

GIỚI THIỆU NHÀ CÁI

GiỚi ThiỆu NhÀ CÁi

View Profile

BLAIR CARRIGAN

Blair Carrigan

View Profile

Hot51 Ph

Hot51 Ph

View Profile