Routing Questions
Ad
Fetch data before resolve route
I´m using for routing "react-router" lib. before render page component, i need fetch data. i want show loader before every routing, because all
Public method for every view? Default ActionResult and Routes in ASP.MVC
I'm experimenting with asp.net mvc and routes. it appears mvc forces me to add a public method to the controller any time i want to create
How do you handle a variable number of MVC routes?
I note this intriguing bit in asp.net mvc: routes.ignoreroute("{resource}.axd/{*pathinfo}"); i'd like to map
Is it possible to run ASP.NET MVC routes in different AppDomains?
I am having problems with thinking up a solution for the following. i got a blog which i recently upgraded from web forms to mvc. the blog is
MVC Beta 1 Routing - what number of routes will start to cause performance issues?
I am considering pre-loading routes to static content pages, allowing for n-depth nesting of content. i have a solution spiked that provides a bit
ASP.NET Routing - Do Custom Routes COMPLETELY SKIP Everything in the Global.asax?
I have a simple asp.net 3.5 sp1 web forms app... i've added the system.web.routing dll, and i've made a simple route that returns a standard
Custom Ruby Routes in Model
Okay, these two related questions are in reference to
ActionController::MethodNotAllowed after reloading routes?
I have an application where i'm dynamically loading routes by a model, and calling actioncontroller::routing::routes.reload! after
ASP.NET MVC routes
I need help with this route map routes.maproute("blog_archive", "blog/archive/{year}/{month}/{day}",
Ad
Creating routes with an optional path prefix
How can i go about making my routes recognise an optional prefix parameter as follows: /*lang/controller/id in
How do you structure your URL routes?
Is there a specific pattern that developers generally follow? i never really gave it much thought before in my web applications, but the asp.net
ASP.NET MVC: Making routes/URLs IIS6 and IIS7-friendly
I have an asp.net mvc-application which i want deployable on both iis6 and iis7 and as we all know, iis6 needs the ".mvc"-naming in the url.
Asp.Net Routing: How do I ignore multiple wildcard routes?
I'd like to ignore multiple wildcard routes. with asp.net mvc preview 4, they ship with:
Can I generate ASP.NET MVC routes from a Sitemap?
I'm thinking of learning the asp.net mvc framework for an upcoming project. can i use the advanced routing to create long urls based
ASP.NET - Building your own routing system
In a recent project, i built my own mvc framework in php. one of the things i implemented was a routing system. i used apache's mod_rewrite to
What is the meaning of the square brackets in “.module("modulename", […])” of AngularJS
I just saw an example of routing in angularjs. i would
Rails: how do you access RESTful helpers?
I'm trying to work through this guide to rails routing, but i
Cant figure out how to route my NON-MVC site from sitemap.xml to another .aspx page
When searching google the only solutions for this come up for mvc websites. my asp.net 4.0 site is not mvc. i want requests for sitemap.xml to
Why is an expression in my app.component.html called multiple times?
I traced the evaluation of an expression in the app.component.html main template and i realized that the trace appeared exactly 5 times each time
Ad
undefined method in rails
I'm new to ruby and started to create my *nd toy app. i: created controller 'questions' created model 'question'
How do I get rid of Home in ASP.Net MVC?
I know this site is written using asp.net mvc and i do not see "/home" in the url. this proves to me that it can be done. what special route and
Getting MVC default route to go to ~/default.asp
I am adding some mvc features to an existing site (fwiw, most of which is in classic asp). as a result, i need to keep the default routing going
Updating parameters in route Angular
I have a route with two parameters in it and im trying to update it (just the url, forget about the content of the component, also i dont want to
ASP.NET MVC Beta - Grouping Controllers and Views possible?
I am on the way to build an asp.net mvc application with the latest beta release and i wonder if it is possible to change the default project
Multiple path names for a same component in Reach Router
I am using the same component for three different routes: <router> <home path="/" /> <home path="/home"
App returns 404 when deployed to production server
My react app is working fine in local, but when i deploy it to a development server i cannot hit the refresh bar. if i do, it will immediately
How to Redirect using two parameter in Controller using Laravel 5.5
Controller is : elseif ($profile_is_exsit > '0') { $url =
creating a related items list
I have designed my crud with backpack 4.0. i have a list of items, called "accidents", and a list of related "events". i have created a custom
Routes are not working, variable from controller are coming up as undefined
Postcontroller public function index() { $posts=post::all(); return
route names inside a group prefix does not include the prefix
I have these routes: route::group(['middleware' => ['role:admin'], 'prefix' => 'admin'], function() {
Ad
Use different styles for a component on different routes? Hide and Show data according to routes
In front page, i have a component called as land-card, in that card i've to show heading, image and 2 icons. but in another route(/marketplace), i
Controller action is not available
I am not familiar with laravel but from what i red i made this: my controller: <?php namespace app\http\controllers; use
I want to display main page in Laravel
I deleted the login get route from the web route file because i want to display it on the main page, but when i visit the homepage "/" it
Passing a parameter to a route and controller in Laravel 6
I am quite new in laravel so please help. i am trying to pass a parameter from a blade file to a route which then passes the parameter to the
Failure on local socket bind when wifi drops
We are getting this strange issue on a raspberry pi. we run a service on a socket that should work for both local and remote clients via
How Can i Call Middleware in this prefix Route?
Hello i am new in laravel framework. can anyone tell me how to apply middleware in this following route?
Laravel Too few arguments to function
I have a simple app for generating some code using laravel, now i am trying to pass unique id to to my controller with the url. this is
Laravel - The POST method is not supported for this route. Supported methods: GET, HEAD
I am trying to add an event on a calendar i have created, however i am getting the following error the post method is not
NextJS initial state is not updating when routing to same page with different params
This project is using nextjs i have a page which url looks like this localhost:3000/first/second
Laravel, protecting a folder in public folder
I have a folder inside the public folder in laravel app, this folder is called 'docs' and i want to protect it from unauthorised access. so
Why does the setState not trigger a re-render?
I'am trying to trigger a re-render to exclude my header and footer. when i log the page, it first triggers render > componentdidmount >
Ad
Laravel Routing Group - use value in Controller
All my requests are starting with a prefix, so i created a route group with multiple endpoints: routes/web.php
Nextjs How to map multiple routes to one page?
I have a page called blog in my nextjs version 9. next create a route /blog
Cannot read property 'id' of undefined while navigate to route with ID in Angular
I am unable to navigate to a route with id argument when using the router. my code is below: app-routing.module.ts:
How can I force all URI requests to index.php?
In my index.php (which is in my project root directory) i have a basic routing system that grabs the url (using
Laravel call app action VS call class object directly
When we can call controller method directly by create object of class like this route::get( 'url/{parameters}', function() {
Getting this error "syntax error, unexpected 'echo' (T_ECHO), expecting ';' " in Laravel while creating simple controller
Hey i just start to learn laravel. i have created controller successfully with php artisan make:controller youtube command. but the thing is when
How we use laravel URL with multiple parameters? Is it necessary to specify each parameter as method argument?Can't we access them through Request?
For the time being, i'm trying to use a url with multiple parameters this way. for example, i'd pass employee id, group id and current status of
Laravel routing shows only one ID in URL even if that ID doesn't exist in the table
In my sidebar i have list od default cities. when i click on each city i get some data for that city from certain api. that part works. in the
Undefined class constant 'App\Providers\RouteServiceProvider::HOME'
After upgrading the laravel 5.8 to laravel 6.x i am getting this error: undefined class constant
POST routes in LARAVEL 6
I'm developping an application in laravel 6 and i have some issues. i have an api for communicate with my bdd and i make get routes for
Laravel Target class [App\Http\Controllers\App\Http\Controllers\ApiController] does not exist
For some reason, which is probably my fault, laravel thinks it should be looking for the class apicontroller in path:
Ad
How to pass Query parameter using route name in laravel?
I know this one {{route('editapplication', ['id' => $application->id])}} == /application/edit/{id} but i
How to attach a router to an express app based on a path specified by a regular expression?
With this very simple app: const express = require('express'); const app = express(); const router = express.router(); const port
Execution flow using next()
I am new to express and have a question about mechanics of next() function. am i correct that once next() is called it immediately
Angular 8 loads javascript from wrong path after reload on lazy loaded module
When i reload the page when i'm on lazy loaded module the app breaks as it tries to import js files from the wrong path. you can see my routing
how to pass different dynamic parameters at same position to access different view pages in laravel
These are my routes for which i am facing problem route to get the list of registered places in a particular city
Trusting users with route parameter and hidden input values
I'm creating a school management system software with laravel, this project happens to be my first big project, to be used commercially. and no
Laravel API route get 404 on Nginx
I have a laravel project. it works on mac os with nginx. i recentlly installed a centos 8. i installed nginx on it and add the configuration
Disable routing to a specific page directly in Gatsby.js
I have success page which has to be displayed when the form is submitted in gatsby. but the user can directly visit /success page. is there any
Get query parameters from react-router-dom into a functional component?
I have a router file to which i am passing query parameters to a functional component. i am using react-router-dom how can i get the query
React: creating a dynamic Route based on a prop
I'm retrieving some data from a server, which i map into subcomponents in my react project. componentdidmount() {
Routing fail on Laravel app deployed on subfolder
Ok, this is what is happening. i've created a small laravel app (actually, still it's on the development stage). when i upload it
Ad
How to handle routes that have an optional 's' character at the end
In my backend rest api i have routes for handling products [get] /products [get] /product/:id [post] /product/:id
Leaflet Routing Machine - Route Control: how to add a click listener to each instructions in the itinerary table?
Currently, the default action when clicking part of a route is that it will zoom into that coordinate on the map. im currently trying to
Error: Undefined routing for create form action field - laravel 5.8
I want to insert data from create.blade. but it was encountered an error for undefined routing. route [question.store] not
NextJS - Dynamic Routing with multiple fetch on 1 Page
I'm trying to rebuild my cra website with nextjs and i'm a little stuck on this
404 not found laravel routing
What's wrong with my routes? it can't redirect to my edit-info form inside infoscontroller web.php
Laravel route redirecting with data
I have a basic route that looks like this: route::prefix('/group')->group(function () { // some routes here
Web development: How to 'store' pages in the browsers and prevent them from reloading every time when navigating between them
I am new to web development and am creating a web app using pure js. i am using firebase and express.js routing for the backend functionalities.
Laravel 6.0 - Custom email verification: temporarySignedRoute() URL not working with new route
I'm trying to upgrade to laravel 6 from 5.8. we're using a custom verification email notification with the following code to get the
React Redirect/Router
I present my problem to you with the following code i make a payment, i would like that if the payment is refused i redirect to a
Angular routing including auth guard and redirections
I have an angular app and want to implement client side routing. i have 3 components: login, chat and
Can't use method in div onclick
I have one angular sample, below is my app.component.ts file:
Ad
Target class [App\Http\Controllers\EventsController] does not exist
Theres a create button on my admin page where its supposed to open the create page <a href="{{route('create')}}">add
What's the correct way to create form handling edit action
I try to send some from form to edit it. i tried to use different ways to achieve this result. none of them worked.
Laravel Routing Error 404 /{slug} and parameter {domain}
I have routes like this : route::resource('tunnels', 'tunnelcontroller'); route::get('/{slug}', array('uses' =>
Auth::user() is null in new route
I'm using laravel 6 and have 2 route in my app; index and dashboard. my routes/web is: auth::routes();
How to protect routes in polka js
I am trying to implement protected routes using polka js. i tried to implement it using a middleware but i keep getting unauthorized even for the
Why is my Post List component not loading?
So as the question states, i have a component inside my post module, namely, postlist. what it is supposed to do is to load as soon as the user
How to resolve urls correctly in Laravel?
I have url for product details (domain.com/productdetail/1/name-of-product), when i click "about us" page while still in this url, i get an error
Laravel routes with wildcards always 404
I'm just starting to use laravel, and i quite like the idea of the routing, but any route i create that has a wildcard falls back to the laravel
PHP Laravel Routing Issue
My setup currently looks like this application/controllers/register.php class
How to extend Laravel's basic route resource in Laravel 6?
I'm using laravel as an api with many endpoints and many controllers. i'm using route::resource() method to define rest endpoints,
Changing navigation and link URLs?
I am new to laravel and this will be inappropriate question. although i searched i couldn't find the answer. my project run smoothly with php
Ad
How can I let my if statement wait for get request to complete ( GUARD ) using angular
I want to create admin routes for my angular app. i've created a role guard in angular. see my code below. now i want my get request to
Use the routing engine for form submissions in ASP.NET MVC Preview 4
I'm using asp.net mvc preview 4 and would like to know how to use the routing engine for form submissions. for example, i have a route
Laravel/Lumen route optional url query parametrers
In lumen i have to get the url first segment as a $source property and all other parts as a $path. it is solved by this:
How to redirect in react-router when routes are in different files
I was trying to redirect to the login page if the user is not logged in. it was working fine when i was using routes in app.js but after making
laravel routing not working on ip address
I implement laravel on vps server that just have a ip address and have no domain. its work and show the index file but routing is not
Routing in node: How can I mange the access to my public folder?
I'm sorry if i'm a little confusing in my explanation. i get this error on chrome when trying to reach my endpoint movies/add get
Route to grouped routes with prefix correctly in Laravel
I have a group of routes with a prefix. in my web routes the routes with an admin prefix go to a separate route file:
Laravel - locale optionally as first parameter in the URL
I've come more from a vanilla php background, but i'm starting to get into laravel (and lumen). i am working on an internationalised project and
Is there a way to set optional route location parts?
Firstly, i am not sure how to structure the question title correctly, feel free to edit it to represent the question correctly. i will try to
Implement a long list of redirections in Laravel
I'm working on this laravel project, ex : https://project.com and i have an excel document containing more than 1000 lines for
Laravel 5.7 custom URL with multiple parameter
I have this problem where i need to get this kind of url localhost:8000/purchaseorder/3/purchase/1 if i typed it manually it worked
Ad
How to implement nested Routing (child routes) in react router v4?
The component tree i want is as below - login - home - contact - about contact and about are children of home. this is my app.js
File will not render .get() request on the server
I am attempting simple express routing and having trouble. i want the server to render the file 'layout2.hbs' into the server when i type in '/1'
Ad
Blog Categories
Ad