Questions tagged [routeconfig]
86 questions
10
votes
2 answers
ASP.NET MVC enum argument in controller mapping
ASP.NET MVC provides simple templates for controller methods such as Details, and can have something like:
public ActionResult Details(int id)
{
// do something
}
This can be accessed by: http://localhost:port/Controller/Details/id
What I'm…

sham
- 3,691
- 4
- 15
- 23
6
votes
2 answers
Angular load routing from REST service before initialization
I am looking into the possibility for Angular 8 to dynamically create the routing from a REST service.
This idea is that a user can create pages which should be available for access by routing on the web page.
I have seen options to dynamically add…

PieterSchool
- 499
- 4
- 15
4
votes
1 answer
undefined is not an object (evaluating 'object.keys(routeConfigs)')
This is the error I am receiving. Please tell me what file you need to see. Apologies if the problem is not to the point, I am a noob here.
First image shows the error
Below is the file which calls for stack navigator.
This file calls for…

Naman Agrawal
- 41
- 3
4
votes
1 answer
ActivatedRoute.routeConfig is null - Angular 2 project with Angular-cli
I have created 2 different projects using angular-cli. Both work perfectly but in one of them routeConfig is null and have no idea what's wrong.
The package.json of both file are the same so there's no any doubt about packages versions, app.modules…

Hooman Limouee
- 1,143
- 2
- 21
- 43
4
votes
5 answers
Using regex for path value of routes in angular2
I want to configure route for my angular2 application. My URL needs to be like this:
http://domain_name/constant_value/variable_value/constant_value
The url can be like following…

kanra-san
- 469
- 6
- 9
- 21
4
votes
1 answer
angular2 2.0.0-rc.1 RouteConfig decorator seems to have disappeared ...?
@RouteConfig seems to have disappeared from angular2 2.0.0-rc.1, @RouteConfig is in the @angular/router-deprecated package, idem on the api documented on the site,
So what is the proper way to defines routes now?

user1568220
- 1,018
- 1
- 8
- 10
2
votes
0 answers
How do I handle a base href when my project uses both angular and razor depending on the route you hit?
I have a project which is using both mvc razor views and angular 8. Depending on the route that you hit, one or the other will be served. My routing is working for the most part and I am able to load my pages correctly. For now when users…

ArtisanSamosa
- 847
- 2
- 10
- 23
2
votes
2 answers
ASP.NET MVC areas return blank view
I have one ASP.NET MVC application which also has areas in it.
For short URL I have set route all actionmethods with short URLs in RouteConfig of areas like below.
//admin dashboard having short URL admin/dashboard
context.MapRoute(
…

3 rules
- 1,359
- 3
- 26
- 54
2
votes
0 answers
godaddy added the name of my folder in the URL of my website
I implement a website with ASP.net MVC. Everything works fine in offline. But the problem is that when I upload in my host, it adds the name of my root folder to the URL.
I want to upload my project in GoDaddy Plesk hosting. My GoDaddy host is the…

neda Derakhshesh
- 1,103
- 2
- 20
- 43
2
votes
1 answer
Route containing and forward slash
We had a route defined as
routes.MapRoute(
name: "SearchFor",
url: "Search/For/{text}",
defaults: new
{
controller = "Search",
action = "For",
text =…

Fishcake
- 10,496
- 7
- 44
- 72
2
votes
1 answer
RouterConfiguration and Router undefined in aurelia
I am very new to Aurelia and just trying to apply navigation to my project.Though i import aurelia-router still it says RouterConfiguration and Router are undefined in constructor
import {Todo} from './ToDo/todo';
import {RouterConfiguration,…

Heshan
- 772
- 8
- 22
2
votes
1 answer
Directory not found error when trying to route to a specific URL
I'm reading Pro Asp.net 4.5 using C# by Adam Freeman I'm stuck where he is adding routes to RouteConfig.cs class in App_Start folder.
When I change
project properties -> Web Tab ->
Specific Page (Inside Start Action section) -> Specify "list"
and…

user3786445
- 21
- 5
2
votes
1 answer
MVC Custom Routing Subdomain
I'm trying to build a "Tenant" Subdomain route that attaches to a MVC Area. In this case I have an Area called "Tenant" which has two controllers; Public and Admin. My custom Route is used to grab the Subdomain if it matches then route them to the…

phanf
- 661
- 1
- 11
- 16
1
vote
0 answers
Flutter Error: Type '_i4.RouteConfig' not found
Getting this error while attempting to run my flutter app:
(https://i.stack.imgur.com/9LKyH.png)
Flutter doctor is healthy:
All dependencies are on flutter pub get --major-versions
Here's my pubspec.yaml:
name: flutter project
description: A new…

Justin
- 11
- 2
1
vote
3 answers
How do the URLs of all pages of my site look like: WebName/{title}
I am working on an web ASP.NET MVC, I want all the pages on my web to have a unique URL form that looks like this: WebName/{Title} . This is requirement of my customer.
For example: store.com/chicken-pizza and store.com/how-to-cook-beefsteak, but…

P.T. Nghĩa
- 13
- 3