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

Table.compute() C# MIN, MAX and AVG
Post Build Event: Build Class Library and Copy Bin Folder Contents
Loading a Large Form in MVC
Encrypt/Decrypt String for Functions [duplicate]
How to set a different language to Bot Framework in Facebook Channel?
SQL display table in vertical
how to converter unreadable block of code in a class
Practical examples of when to use a ListPool or any pool of collections
I want to take array of 30 and use 3 threads that will sum the 30 values.Each thread adds in groups of 10
Send data from ASP.NET MVC to desktop application
What is the APEv1 tag identifier?
ServiceStack Client Put request and query parameters
using cookies for session mvc
Create shortcut to Content Files in File System's Setup Project
Submit selected checkboxes only for multiple objects to an MVC controller
MVC4: Authentication still valid but got redirected to login page after app pool recycle

Categories

HOME
spring-boot
joomla
cors
apache-storm
x86-64
hex
magento-1.9.2.1
salesforce-lightning
singleton
autocad
gnuradio
schema
revit-api
software-collections
angularjs-ng-repeat
ldap-query
expo
versioning
smooth-scrolling
ibatis
google-street-view
lotusscript
google-drive-android-api
gsuite
pixels
smart-device
apm
undo
textview
opencsv
loopback
unity3d-5
oracle-nosql
luhn
n1ql
certbot
azure-vm-scale-set
kofax
maven-2
outlook-2010
strategy-pattern
mongoid5
linkurious
google-chrome-console
directadmin
libzip
nshttpurlresponse
codepen
logan-square
runner
g77
monaca
multivalue
sharpssh
chain
esprima
lattice
android-music-player
gevent
distcc
foreground
vitamio
pyshark
trendline
ooad
google-app-engine-php
skscene
bioconductor
pagecontrol
p4python
eggplant
android-networking
transparentproxy
ultraedit
ccmenuitem
visual-studio-setup-proje
smartxls
opencobol
email-headers
power-management
data-layers
flask-mongoengine
nvcc
ekevent
grape-api
typography
wpa
forward-declaration
mandelbrot
infinity.js
nsregularexpression
mail-gem
states
django-1.4
reflexil
nserror
code-organization
xhtmlrenderer
chars
activescaffold
hp-trim
data-formats

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