Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8055527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:25:01+00:00 2026-06-05T08:25:01+00:00

I have an old web application that’s being migrated to a different system, and

  • 0

I have an old web application that’s being migrated to a different system, and I need to ensure that the existing URLs are redirected to the new system. (I’m using ASP.NET MVC2.)

Usually, I can just redirect to the homepage of the new site. However, if the URLs link to a specific item, they use an HTML bookmark as follows:

http://server/old-system/#itemID

I have a lookup file and translation function to go from an “itemID” to a redirect URL, and I can accomplish the redirection using a RedirectResult.

But how can I get the anchor tag to the server as a query string parameter (anchor tags aren’t sent in HTTP requests)? I assume I’ll need some kind of client-side javascript for this to invoke a separate server method, but I’m not sure how to do that translation.

(Note, the whole reason for doing this is that clients may have stored a bookmark link to an item.)

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T08:25:03+00:00Added an answer on June 5, 2026 at 8:25 am

    If http://server/old-system/#itemID is a page in your system you can do a quick translation in javascript.

    window.location.href.replace('#','?link=');
    

    or get the value and link to another page.

    window.location = "http://server?itemID="+window.location.hash.replace('#','');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have added an MVC3 web application to an existing website that consists of
We have a old Web Based application supported on browsers from IE6 to IE8
I have in here an old web application written in ASP.Net 2.0 + AJAX.
Age old question! When you have finished developing and testing your ASP.Net web application,
I have a customer (a very old person) who wants an application that has
I have memory leak in the web application (servlet) that I am working on.
We have a third party application that provied its web services to us by
I have an ASP.NET 4 web application that references a SOAP web service. I
I am working on a Silverlight application that uses WCF. I need to have
We have a web application that only supports IE6 and above. It is an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.