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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:36:54+00:00 2026-05-20T05:36:54+00:00

Im hosting a rails app on heroku. It runs on the client on a

  • 0

Im hosting a rails app on heroku. It runs on the client on a touchscreen with Google Chrome in Kiosk mode, so no browser chrome or keyboard. The login/home page is different for every kiosk.

Error pages are static assets, so I’ll have to do this with Javascript. If there is an error I want to display a button that will let the user get back to the home page.

I can’t just use a back button script b/c of the potential for multiple errors. I thought about using localstorage to store a reference to the home page, but the error pages are served from a different domain so they wont have access.

Any ideas?

Edit:
This works in Firefox onClick="window.home();" If I set the browser’s home page to that particular kiosk. But apparently isn’t supported in Chrome. Is there any way to store some kind of variable that any domain can access on a per browser/kiosk basis.

  • 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-20T05:36:54+00:00Added an answer on May 20, 2026 at 5:36 am

    I think you’re making this too hard. You already have the information you need to go back stored in “local storage” — the browser history. Simply use javascript to look at the history and go back as far as you need.

    As far as returning to the home page, isn’t the home page a well known URI? What’s wrong with <a href="http://example.com/index.html">go home</a>?

    Update

    Isn’t the home page always going to be the first page in the history? You seem to be saying that you’re in a situation where you want to return to a page for which you don’t know the base URI, don’t know how you got where you are, and don’t know where you started.

    I suppose you could put the place you’d like to go into a cookie, but if you don’t even know the base URI, how would you retrieve it?

    I’m beginning to think the real answer is “you need to rethink your design, there’s something deeply wrong.”

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

Sidebar

Related Questions

I have a rails app using postgres and hosting on heroku. I 'm trying
I have a Node.js/Rails3 app that I'm hosting on Heroku. The rails portion seamlessly
I have Rails 3.1 app that I'm currently hosting on Heroku. My problem is
I use currently use Heroku for rails hosting which uses a Git repository for
I was referred to Heroku for Ruby on Rails hosting and so far I
I am wondering about the best hosting for Rails 3.1 app based on ruby
I've tried those 3 hosting approaches for my Rails app, and no matter what
I have a question about hosting large dynamically-generated assets and Heroku . My app
I have app with domain 'www.mysite.com' which is hosting Drupal and 'app.mysite.com' hosting Rails
I'm trying to setup Amazon S3 hosting with my Ruby on Rails 3 app,

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.