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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:19:25+00:00 2026-06-01T12:19:25+00:00

I have an url domain.com/a which redirects to domain.com/controller/action/a . How do I get

  • 0

I have an url

domain.com/a

which redirects to

domain.com/controller/action/a .

How do I get the referrer (i.e domain.com/a) in my action for domain.com/controller/action/a ?

One option was to add the referring domain as a parameter .

domain.com/controller/action/a?referral=domain.com/a .

Is there a way to get the referrer without passing old referrer as a parameter. Like we would get from **request.referrer**. request.referrer doesn’t seem to work with redirected urls.

I am using Ruby on Rails for my development.

  • 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-01T12:19:27+00:00Added an answer on June 1, 2026 at 12:19 pm

    I store the referrer path in the session right before redirection

    session[:referrer]=url_for(params)
    

    and then use it where I need it via session[:referrer].

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

Sidebar

Related Questions

I have a url which has some get variables in it like: domain.com/recover?email=my@email.com&token=abc123 inside
I have a domain name abc.mydomain.com This is a https URL ( http redirects
I have my site which redirects all *.domain.com calls to domain.com. What I want
I have url http://www.domain.com/folder/?variable=1 i would like to do a mod redirect to index.cfm
Ok so i have a url like domain.com/item/item_id/item_description/page when i type the link without
I have an action email in my controller of application running on www.example.com and
I have the ajax query var url = http://ISAServer.domain.com/WebSite; $.ajax({ url: url, success: function
I have url rewrite rules which redirect www.domain2.com to a subfolder under the root
I have a web application that serves urls such as... http://domain.com/#!/this-is-a-parameter I want to
I have URL like: http://example.com#something , how do I remove #something , without causing

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.