Questions tagged [routes]
Questions about mapping URLs to Controllers and Actions.
routes
11,030
questions with no upvoted or accepted answers
12
votes
0
answers
2k
views
Angular 7+: HMR (Hot Module Replacement) does not work if any route-resolve involved
HMR (Hot Module Replacement) is a great functionality, that works properly if no "Route-resolve" (see below) is present.
If I remove resolve here:
{
path: 'new',
component: ...
11
votes
3
answers
14k
views
ASP.NET MVC regex route constraint
I'm having trouble with a specific constraint I'm trying to set up on a route. My URL must look like this one: http://hostname/id-my-title-can-be-that-long where id is composed with digit only and the ...
10
votes
0
answers
2k
views
How to use i18n in Next.js without i18n routing?
From v10 Next.js supports i18n routing. We should use i18n routing if we want to use i18n in Next.js. But my app doesn't need i18n routing.
How do people developing SaaS with Next.js use i18n?
9
votes
1
answer
753
views
Rails Routing Constraints and UTF-8
I need to handle routes like /:slug. The slugs are constrained elsewhere to match:
\A[\p{Alnum}_.-]{3,}\z
The obvious routes:
get '/:slug' => '...', :constraints => { :slug => /[\p{Alnum}_....
9
votes
1
answer
4k
views
How to use scrollPositionRestoration in RouterModule.forchild(); ? How to make the page always scroll at top after page navigation?
scrollPositionRestoration : 'top' is not working for RouterModule.forchild()? Is there any solution in angular 7 to make sure that page always scroll top after navigation?
8
votes
0
answers
4k
views
Implement next js Optional catch all routes without deleting index.js
How can I implement Next js feature Catch all routes [[...slug.tsx]] (https://nextjs.org/docs/routing/dynamic-routes#optional-catch-all-routes) without deleting the index.js page? If I don't delete it,...
8
votes
1
answer
1k
views
urlbased loadbalancing of websocketconnections in Kubernetes with Ingress
I want to use nginx.ingress.kubernetes.io/upstream-hash-by for websocket connections of multiple clients, where related clients (based on URL) should stick to the same server.
Ingress-nginx seem to ...
8
votes
1
answer
3k
views
Fixed elements jump on screen when using transitions in vuejs
When using transitions between routes in vue it seems fixed or absolute elements only move to their positions after the transition has completed leading to a jump after animation. Is this perhaps a ...
8
votes
1
answer
428
views
vuejs-framework7 toolbar route
I am working on a app made with Framework7 and vuejs.
I have bottom toolbar but i have routing problem here.
here's my code
route.js
{
path: '/about/',
component: require('./assets/vue/pages/about....
8
votes
1
answer
11k
views
Cloning and forwarding packets to multiple IP addresses
I'm trying to forward all incoming TCP packets to multiple IP addresses.
Setup:
A - 10.10.10.10
B - 10.10.10.11
C - 10.10.10.12
D - 10.10.10.13
I want B, C and D to receive (on port 8000) all ...
8
votes
1
answer
3k
views
Rails create action is redirecting to index when it should be rendering the new action
If I submit a new user form with errors, it redirects to the index page and then renders the new page on top of it. In the controller I specify that it should just render the new action so that the ...
7
votes
0
answers
4k
views
How to persist state across pages using NextJS and useContext hook?
My app is running on NextJS and I would like for some list items that users generate on my index.js page to stay in state for whenever a user hits my results.js page via a <Link>. I decided that ...
7
votes
1
answer
663
views
How can I navigate to a path with percentage sign in react-router?
I am trying to navigate to a page which may contain a percentage (%) sign in the url. e.g "www.domain.com/edit/name%"
if (some condition is met then redirect) {
let encodedString = ...
7
votes
1
answer
2k
views
Flutter routing with Firebase Auth and ChangeNotifierProvider
I'm trying to make my flutter architecture as best as possible before diving into the features of my app. I have already made an app with firebase Authentification working, based on ...
7
votes
2
answers
2k
views
angularjs view loads only on hard refresh and not on redirect
I am working on my angular app and have setup the routes like so
angular.module('app', ['ngRoute'])
.config(function ($routeProvider, $locationProvider) {
$routeProvider.when('...