c#


<a href> to external link returns link/Error in webapp, even though the server is not dead


I've got 3 links in the header of a .net C# MVC, with the following .cshtml file:
<div id="header">
<div id="manag-nav">
<a class="manag-page" href="https://EXAMPLE-LINK.com/Account">#Resources.label-A</a>
<a class="manag-page" href="https://backoffice.EXAMPLE-LINK.com/Sitefinity">#Resources.label-B</a>
<a class="manag-page website-page" href="http://www.EXAMPLE-LINK.com">#Resources.label-C</a>
</div>
<div id="logo">
<img src="#Url.Content("~/Content/Images/logo.png")" alt="" />
</div>
<div id="user-login">
</div>
Label1 and label3 links work fine, but my 2nd link, label2, when you click it, it returns "http://backoffice.blabla.com/Error" instead of "http://backoffice.blabla.com/Sitefinity".
Does anyone have any idea why this is happening?
I forgot to mention that when I go to this link directly, it works. Or when I write the link for this url in a simple .html file, it also works. It just stops working in the project.
It might be because you are already logged in with a user and when you try to access /Sitefinity that user might not have backend access permissions, or is redirected to another page based on its role and there is an issue with that page, etc.
Long and short - make sure you are not logged in to Sitefinity and then try the link.
If you still face the issue - then better examine the rendered html output - it may have been modified by an external javascript, or there might be a javascript click handler for that html element, could be many things.

Related Links

C#: How do i select columns of data from csv, stored in an array/datatable?
Rounding a Double without using Round or Truncate
is Console.WriteLine a bottleneck in Windows Applications?
FileIOException, file.length threw an exception
How do I specify an interface return type while still remaining dynamic?
Multilingual website in ASP.NET
C#: Directory.getCurrentDirectory() when launching from Browser
“Is” c# operator just like instanceof in java?
Checking client side validation suceeded/failed at server side
How to efficiently make changes to code (removing defunct code)
What is the recommended way to assign and change an event for button on a form
Display, Connect and Disconnect Wireless Networks
Converting Java Generics to C# Generics
C# - HttpWebResponse Header Not Being Set
How can I instantiate this class?
How do I set the Manager Attribute on the UserPrincipal object in Active Directory in C#

Categories

HOME
stanford-nlp
fortran
mifare
ms-access-2010
kendo-asp.net-mvc
obd-ii
ejb-3.0
minimax
openbsd
jpql
fetch
unreal-engine4
websharper
lambda-calculus
react-select
k-means
openam
wallet
react-jsx
javaagents
struts
datastax-enterprise
jopendocument
stack-trace
large-files
angular-schema-form
paper-trail-gem
xlib
selenium3
microstrategy
android-scrollview
n1ql
iterm2
text-extraction
geminabox
evaluation
monaca
runtime-permissions
wink
jenkins-docker
fckeditor
scrollmagic
group
optional-parameters
firebase-polymer
racket-student-languages
papyrus
mongodb-3.3
disconnect
deck.js
android-xmlpullparser
window.location
clique
wordpress-plugin
dday
google-finance-api
overlapping
adempiere
avrcp
firebase-tools
xcode5
apache-pivot
go-gin
pnunit
azure-worker-roles
nest-initiative
msdropdown
html5-filesystem
git-subtree
db2-connect
autofilter
adabas
maven-javadoc-plugin
mobile-robots
ia-32
zend-db-table
mysql2
pageload
nx
dnsbl
pdf-reader
animationdrawable
mysql-connector
isgl3d
excellibrary
arraycollection
chromebug
database-agnostic
morfik
zend-acl
jettison
software-update
moores-law
weak-typing
hotfix

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App