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

  • Home
  • SEARCH
  • 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 6379799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:11:05+00:00 2026-05-25T02:11:05+00:00

So I need the following: When someone navigates to a certain page then it

  • 0

So I need the following:
When someone navigates to a certain page then it checks if it’s the facebook Like crawler. If it’s true then it shows the page normally (with the opengraph tags and everything).

If it’s false (so the user is just a normal user) it should redirect to a specific external URL.

This is my code so far:

        NotebookModel notebookmodel = db.NotebookModels.Find(id);
        var isFacebook = Request.UserAgent != null && Request.UserAgent.Contains(Config.FacebookUA);
        if (!isFacebook)
        {
            return Redirect(notebookmodel.Url);
        }
        return View(notebookmodel);

This works perfectly except for 1 small detail (that does mess up my result): it appends a “+” at the end of my external url once redirected. The url in notebookmodel.Url is right, but once it passed through the Redirect it appends a “+” symbol at the end. Anything I’m doing wrong or can do to fix this?

  • 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-05-25T02:11:05+00:00Added an answer on May 25, 2026 at 2:11 am

    I suspect that you have a whitespace at the end of the notebookmodel.Url property. Spaces are converted to + when url encoded. You could Trim it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

can someone help with this? I need the following function to do this... $x
I need someone to explain the following names; Asynchronous Delegates. Asynchronous methods. Asynchronous events.
I simply need to know if someone is following me on twitter, when they
Need someone to help me to crack the following. On my local machine, i'm
can someone please help me with the following query i need to update a
Please can someone take a look at the following image: http://img109.imageshack.us/img109/6885/colouring.png I need to
Could someone tell me why am I getting the following error? javax.naming.NoInitialContextException: Need to
Could someone please help with the following jQuery I need all jQuery UI buttons
I wonder if someone could quickly help me with the following, do I need
I need some confirmation. I always get correct o/p but someone told me following

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.