Questions tagged [reroute]

45 questions
3
votes
3 answers

Rails: Redirect to page if condition

I want to redirect a user if a condition is true: class ApplicationController < ActionController::Base @offline = 'true' redirect_to :root if @offline = 'true' protect_from_forgery end Edit This is what I'm trying now with no success. The…
Kevin Brown
  • 12,602
  • 34
  • 95
  • 155
3
votes
0 answers

How to extract substring IN JSON PATH using CAMEL

I am trying to configure my routes based on the substring of value from an attribute. For example, I have this Json Attribute: { "carColor": "Red/hatchback" } There are other possibilities such as "Blue/Sedan" and "Black/SUV" etc. I would like to…
purplewind
  • 331
  • 10
  • 26
2
votes
1 answer

Intercept web server request, modify, forward

The idea is simple but i am not quite sure what would be the best way to implement such a feature. What i basically wish to achieve is that all web requests that come in to my server are captured and modified. Cookies, headers etc. are all…
oipoistar
  • 477
  • 6
  • 19
2
votes
1 answer

SUMO: Change simulation time step and output option

I am running SUMO for a large network for up to 4 days. I understand thta most traffic following models were developed in second but I kind of need to increase the timestep to minutes or 5/10 mins. I have come across this function.…
Yu Deng
  • 1,051
  • 4
  • 18
  • 35
2
votes
1 answer

301 redirects and matching old maproutes to new ones

I have 2 websites an old one called www.old.com and a new one called www.new.com . The old url has a 301 permanent redirect to the new website, but the new website has a different maproute so everything is not matching up the old website has the…
user1949387
  • 1,245
  • 3
  • 21
  • 38
1
vote
0 answers

Re-routing takes around 10 seconds to plot the next path Mapbox

I'm working on Navigation iOS application and I'm using Mapbox for route and navigation. Everything with Mapbox looks fine except the rerouting functionality. According to the official Mapbox documentation for iOS, re-routing get trigger when we…
Sourav Mishra
  • 501
  • 4
  • 21
1
vote
4 answers

Zend - Conditionally reroute all pages

I'd like to be able to reroute or redirect all requests to my site to a specific page, if a conditional passes. I'm assuming this would have to be done somewhere in the bootstrap or with the dispatcher, but I'm not sure exactly what the…
Ryan
  • 17,511
  • 23
  • 63
  • 88
1
vote
0 answers

How to check the driver is on the route or not in android (Re_route Process )

I am working in an android application and I have two apps one is rider app and another is driver app. In Driver, I get the driver current location and send it to the server and In rider side, one API for rider end that gets the driver location and…
1
vote
2 answers

How to read file using Apache Camel, process the file using Spring batch, read each line and route it back through Apache Camel

Would like to know how to pass the JAXBElement to a Camel route, which processed from each line of the batch file read through Spring batch loaded through Camel Route. Code snippets given below uses a customerWriter method to call JMSTemplate to…
Vijai
  • 47
  • 1
  • 6
1
vote
1 answer

Rerouting in Skobbler Map

I am trying to resume navigation in the route that is cached but I could hardly find any method which could perform that feature in SKmaps. Therefore I am trying to customize the rerouting technique so that the user will be navigated to the same…
Ranjana Dangol
  • 1,319
  • 2
  • 13
  • 24
1
vote
1 answer

Route old ids to new routes with the same controller name and using friendly id

I have a rails app but I need to route old routes from a php app to my new rails routes (because of old google ads tied to them). I have looked far and wide and I can't figure out how to solve my problem. I have a videos controller where my new…
AGirlThatCodes
  • 575
  • 7
  • 21
1
vote
2 answers

How to implement redirection to a page using angularJS after login?

if ($scope.IsFormValid) { return $http({ url: '/User/UserLogin', method: 'POST', data: JSON.stringify($scope.User), headers: { 'content-type': 'application/json' } }).success(function (d) { …
Marylin
  • 11
  • 1
1
vote
0 answers

Hosts File reroute browser error "unsecured connection"

I'm in the process of creating a tool that can block, unblock, and reroute websites by manipulating the hosts file. It works as intended with the exception of the reroute part. I'm able to get something like this saved in the hosts…
1
vote
1 answer

Hosting an ASP.net application on a subfolder

I got a hosting space with Godaddy and I have multiple domain names referring to the same host space. One of the application is an ASP.net and is located in a subfolder with the domain name related referring to that subfolder. So www.mydomain.com is…
Bishoy
  • 705
  • 9
  • 24
1
vote
1 answer

Re-Routing Raspberry Pi GPIO - Dummy Pin?

I am working on porting the open-source project OpenROV for Raspberry Pi. (The project is developed for BeagleBone.) The only significant challenge of the port is changing the software's references to GPIO1_0 (aka GPIO32) to a pin that is open on…
1
2 3