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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:04:48+00:00 2026-06-10T20:04:48+00:00

This is a complicated question to ask: I was implented a REST Application in

  • 0

This is a complicated question to ask:

I was implented a REST Application in 2 parts:

  • Server: Implemented with Restlet 2.0.14
  • Client: WebApp with Backbone.js

In the client, my Backbone App uses the backbone router api, for example i have this uri:

“http://localhost:8000/myApp/#/resource1/attribute”

This is a Backbone route, like i perhaps, when i put this url in the web browser, the browser sends to the server: “http://localhost:8000/myApp/” but the second part (the fragment) it’s for execute when he download the app from the server, i suppose it’s correct…

Well, because i’m implementing my own web server with Restlet, i want the next scenario:

  • When an user puts in his browser this url: “http://localhost:8000/myApp/resource1/attribute” my server must return the backbone webapp, and the browser needs to load the correct view (using the routing) with the fragment.

To implement that point, i implemented a Redirection on my restlet server, when a incoming request to the url: “http://localhost:8000/myApp/resource1/attribute” i redirect it to this url: “http://localhost:8000/myApp/#/resource1/attribute/” with a 307 (Temporary redirection) and set the url in the “Location” header.

All is correct at this moment, the browser receive the response with the redirect, and the browser call to the server with this url again. I see in the url bar the redirect url.
But, the routing doesn’t work, i receive the webApp, but it’s look like the browser doesn’t execute the fragment of the uri.

Maybe, anyone can show me the light?

  • 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-10T20:04:50+00:00Added an answer on June 10, 2026 at 8:04 pm

    The problem was with the response url in the redirect. The last ‘/’ must be omitted, because the routing in backbone.router is:
    “resource1/:variable”: “variableFunction”

    The fragment executed on the browser works correctly now.

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

Sidebar

Related Questions

In this question, I had help in simplifying and forming a valid complicated JSON
This question is related to an existing question I asked. I though I'll ask
I have tried to ask a variant of this question before. I got some
So, I've come back to ask, once more, a patterns-related question. This may be
Somehow I feel really silly to ask this question, but I just spent 2
This seems like a simple question to ask but, is it generally a good
I hate to ask this question as I am aware that there are plenty
This is a very complicated question concerning how to serialize data via a web
I have a quite complicated question to ask :) I am currently working on
This is a complicated question with many possible answers, so I'll break down my

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.