Last post Nov 06, 2017 08:04 AM by grafic.web
Nov 04, 2017 02:25 PM|grafic.web|LINK
Hi, i have a RedirectToRoute which i use in case in mu url the Language is missing example if my url is like this :
i redirect to the same url but with the language:
The only prolem is that when user try to see the home page, is actually redirect to the home with language, but he is redirected to :
i tried to do this code in order to avoid /Home/Index in my url, but it always show it..
if (controller.ToLower() == "home" && action.ToLower() == "index")
lang = langName,
controller = "",
action = "",
how to redirect without ? like this :
Thanks in advance for your help
Nov 06, 2017 05:38 AM|Kelmen|LINK
this is a funny request - redirect to home page without showing home page
seriously, either u putting wrong description, or u don't understand what is needed
1st thing, u want to redirect, now, where u want to be landed? home page , or not?
Nov 06, 2017 08:04 AM|grafic.web|LINK
in fact i resolved it... i just avoid to redirect to home page in case homepage is loaded... was a problem with culture an language choosen, but i resolved it!!