Top "Routes" questions

Questions about mapping URLs to Controllers and Actions.

Simplest way to define a route that returns a 404

I've got a requirement to specify a named route in a Ruby on Rails project that returns the public/404.html …

ruby-on-rails routing routes http-status-code-404
Reactjs - `component` vs `render` in Route

I have two doubts regarding usage of Route from react-router-dom(v4.3.1): When do we use component vs render in Route: &…

javascript reactjs routes react-router-dom
Add Markers Along a Route

I am trying to create several markers along a route from google maps directions. I have already looked into waypoints …

google-maps-api-3 routes google-maps-markers directions
how to get current route in react-router-dom v4.2.2

I want to get current route path in meteor based react project and I want to create login page externally..…

reactjs routes react-router meteor-react
KnpMenuBundle and dynamic route parameter

i use knpmenubundle for my website and here is my problem : i've a list of user listed by this route : /…

php symfony parameters routes knpmenubundle
Bat script for automatically adding routes - Must be run several times

I'm writing a bat script for automatically creating /32 routes towards devices in a network reachable trough a LAB tunnel interface. …

batch-file routes tunnel ipconfig
How to send an array via a URI using Attribute Routing in Web API?

I'm following the article on Attribute Routing in Web API 2 to try to send an array via URI: [HttpPost("api/…

asp.net-web-api routes asp.net-web-api-routing
Next.js - router.push without scrolling to the top

I am using router from next by importing useRouter from next/router. I am trying to find a solution which …

javascript reactjs routes next.js next-router
Angular 4.3 Interceptors for Lazy Loaded Modules

What is the best practice to use core module service in lazy loaded feature module and feature child modules. As …

angular routes lazy-loading angular-http-interceptors
How do I set root path to '/' without controller and action in Rails?

In my routes.rb I want to set the root_path to '/' without specifying any controller or action. …

ruby-on-rails ruby-on-rails-4 routes comfortable-mexican-sofa