T
T
tushevmikhail2020-12-13 10:10:45
ASP.NET
tushevmikhail, 2020-12-13 10:10:45

How to fix html.Action address truncation?

For example, I have a login controller (get and post) each returns return iactionresult view() ..
In the view I have an outline of texboxes and a button, it all wraps in html.beginform(account, login).. The
question is: how to do so that for example in the url I added host/.../.../account/login
How to make these very dots in the address bar. For when deploying on a server, I have a problem in the form of eating up the address bar and instead of the correct address in the form host/.../.../account/login
When you click on a button like sumbit, the address bar is truncated to host/account/login

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2021-03-19
@prorom-exe

Use attributes
[Route("name")]
Controller() {}
PS

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question