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

Prevent session variables from being overwritten in new tabs
How to integrate python library in c# project
Why a session variable lost in staging server, but works fine in localhost?
Changing A Label's Text In A Click Event For A WPF App [duplicate]
JWT code examples
How do I create a windows service for authentication that custom web applications can use to authenticate AD users?
Testing if ASP Table is Visible
Get list of tables from database
C# control.find explanation
Creating executable COM as ATL project and use it in C#
Supress all violations in Code Analysis Visual studio 2015
How to Save contents of a textbox to a file
Managing Arrays in C# (Memory management)
ASP.NET Web API: any downsides to asynchronous operations?
Use Debug.Log from C++
Comparing only time element with Oracle db using Entity Framework

Categories

HOME
ns2
compression
window.open
overrides
mailchimp
flowtype
procmon
kohana
annyang
ejb-3.0
ios-universal-links
luis
bookmarklet
wallet
alert
project-structure
openoffice-basic
minimagick
coccinelle
onclicklistener
aws-iot
gsuite
core-animation
scalatest
gulp-jshint
restangular
r-factor
postgresql-9.6
microstrategy
powerbi-embedded
sampling
leaderboard
campaign-monitor
maven-2
oracle-bpm-suite
matrix-multiplication
origami
idea-plugin
definition
binary-decision-diagram
libzip
gradlew
reqif
spring-ide
react.rb
openxava
extjs3
dna-sequence
multi-select
lattice
eclipse-mars
hdr
class-design
deck.js
normalisation
weblogic-maven-plugin
jmh
custom-build-step
google-finance-api
jquery-draggable
gtkwave
android-contentresolver
libgcrypt
play-json
jain-sip
tinymce-plugins
maven-archetype
attiny
optimistic-locking
crtdbg.h
kss
oxygenxml
parallel-port
isl
winrun4j
pidgin
object-oriented-database
mahara
mencoder
nokogiri
source-depot
exi
vline
rfc822
configurationsection
wpml
aspmenu-control
event-propagation
motorola-droid
commonsware
capitalization
automapper-2
mscorlib
parallel-python
gmagick
html5-animation
s60
google-local-search
mysql-logic
lts
pkcs#7
ihtmldocument2
authkit
unauthorized

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