All language subtitles for 011 Redirecting The User_en

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranรฎ)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

Now, the last feature I want to cover here

before we dive into the demo project is redirects,

a feature that allows us to redirect the user.

And I got an example for this as well.

In our App.js file, we defined routes

for /welcome, /products and /products/productId.

Now, what if I just visit my domain /nothing

then I don't get an error,

but I also don't see anything on the screen.

Now, here, we might want to redirect

the user to /welcome.

Of course, we could always adjust

change this to /nothing exact here

and showed a welcome page for /nothing.

But if that's not what we want

we can redirect and stat.

For this, we can to find another route

where the path is /nothing and where we add exact so

that this is not treated as the start of a route.

Otherwise it would match all routes

because all the routes start with /nothing in the end.

Hence, we need exact here.

And then inside of this route, I don't render J as X code.

I don't render another of custom component.

Instead, we render a component provided

by React router Dom.

The redirect component.

That is a component, which you can render like this.

And if it gets rendered, it will do what the name implies.

It redirects the user somewhere else.

So here we can then redirect to /welcome,

which means if we're just visiting /nothing,

this will be rendered

and this will then change the URL to /welcome.

And then this route will become active.

Hence exact is very important here because without it

every route would be matched here

and we would be redirecting all the time

and we would create an infinite loop there

for so exact matters.

But with that, if we save this

if I visit just my domain /nothing

you see it automatically changes to /welcome

in the URL here.

And that's how we can use redirects

in our application with help

of this redirect component provided by react router.

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.