href open url in same soluation in cshtml asp.net core

mohammad sebaa 21 Reputation points
2022-07-03T17:49:35.653+00:00

I have code in cshtml page in asp.net core 5 ,and i have code :
<a href="www.google.com" target="_blank" rel="noreferrer noopener" order now
<span> </span></a>
when i try to run it open the url in same solution as
http://localhost:44305/Home/www.google.com

how i can redirect to the correct url ?
thanks

Developer technologies | ASP.NET | ASP.NET Core
0 comments No comments
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 77,926 Reputation points Volunteer Moderator
    2022-07-03T18:03:32.027+00:00

    Include the protocol so it knows it’s a domain name, not file

    href="https://www.google.com"

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.