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 7772211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:50:13+00:00 2026-06-01T16:50:13+00:00

I have placed hyperlinks in an excel spreadsheet though my ruby-on-rails application. The links

  • 0

I have placed hyperlinks in an excel spreadsheet though my ruby-on-rails application. The links are to some privileged pages that require, After the login I am supposed to taken to the requested page. However, what happens is that after login I lang on the home page of the website. Interestingly, when I right-click the link in the excel and paste the link in the web-browser url, it works as expected. So I don’t think it’s my app’s fault, but rather something in excel that I am missing?

My scenario is pretty much the same as this scenario:
http://www.geekstogo.com/forum/topic/289186-excel-2007-hyperlink-loads-web-login-screen-not-linked-urlplease-help-me/

  • 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-01T16:50:14+00:00Added an answer on June 1, 2026 at 4:50 pm

    This issue normally happens in IE and i also faced the same problem.

    Solution to this is very simple

    1. Create a redirect.html page in your public folder (public folder because you are using ROR)
    2. Copy this to your redirect.html

    <html>
    <body>
    Please wait, loading your page... 
    <script type="text/javascript">
    function getQuerystring(key) {
    key = key.replace(/[\[]/,"\\\[").replace(/    [\]]/,"\\\]");
    var regex = new RegExp("[\\?&]"+key+"=([^&#]*)");
    var query = regex.exec(window.location.href);
    return query[1];
    }
    window.location = window.location.protocol + "//" + window.location.host + "/" + getQuerystring('page');
    </script>
    </body>
    </html>
    

    1. The links you are constructing in excel should be modified

      For e.g Old link – http://test.com/post/comments/1
      New link should be – http://test.com/redirect.html?page=post/comments/1

    2. You need to pass the part of URL (after base url) as a param

    How this works.

    When user clicks a link in excel it points to redirect.html and the javascript constructs the actual URL and redirects again to proper page, user will be navigated to actual page if already logged in else redirected to Login/Home page.

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

Sidebar

Related Questions

I have an exe that is built and placed into a Setup project for
I have two aspx pages i.e. default1.aspx and default2.aspx. Default1 contains some controls, tables
I have links on a homepage that may or may not have attachments associated
MVC3 VB.NET Razor view Application... I have a view that uses a for each
I have placed my static web application in an asset folder. My static web
I have placed an edit box and in that box the user has to
I have an Excel macro that is copying all of the information from a
I have placed a conditional checking in the oncreate of my application for checking
I have placed together some code which converts strings into data, and then places
I currently have a listBox in a WP7 application that uses databinding to populate

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.