开发者

mvc application with razor data view engine problems with the url

开发者 https://www.devze.com 2023-02-28 09:24 出处:网络
I create a new mhc application with razor data view engine. I have a problems with the url Here is my action links

I create a new mhc application with razor data view engine. I have a problems with the url

Here is my action links

@Html.ActionLink("Home", "Index")
@Html.ActionLink("Schedule", "Schedule")

After I loaded home page my url looks fine

Example: mysiteurl.com

Then I click Schedule link (if I hover I see the correct url http://mysiteurl.com/home/schedule). If I click it as a result my url will http://mysiteurl.com//#/Home/Schedule. I don't know why its adding # sign to my url but it's causing the issue in开发者_JAVA百科 my application with other pages.

any idea what I'm doing wrong?


Do you have an action method named Schedule? Can you successfully hit it by referencing yoursite.com/Home/Schedule? If not make sure your route is correct.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号