routes Questions
1
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 = encodeURICompo...
Harv asked 17/3, 2020 at 11:4
3
Routes not working and default controller showing error 404 when I am setting welcome as a default controller then all routes defined with the welcome controller working but my other routes and url...
Galatians asked 18/1, 2018 at 8:13
10
Solved
Is there a native way for inplace url parameters in native Go?
For Example, if I have a URL: http://localhost:8080/blob/123/test I want to use this URL as /blob/{id}/test.
This is not a question ...
Weatherglass asked 23/3, 2015 at 13:16
3
Solved
I am trying to redirect the user to the homepage when he tries to access the dashboard of the app without being authenticated, but the Route.push() is not working.
I tried to change Router.push('/...
3
Solved
I am making a website that handles subdomains, I have setup an environment variable called base_host and now I want to use this into the @route annotation in Symfony 4.
I have tried sofar: @Route(&...
Carpous asked 7/11, 2017 at 18:33
3
Solved
Is there some way to provide a default value to the url/path helpers?
I have an optional scope wrapping around all of my routes:
#config/routes.rb
Foo::Application.routes.draw do
scope "(:curre...
Darondarooge asked 29/3, 2012 at 18:41
25
Solved
I am working on an Angular project. I'm struggling with refresh action in a component.
I would like to refresh the router's components on button click.
I have refresh button when I click on it the...
Heighho asked 14/12, 2017 at 12:55
23
Solved
there are several issues with the same theme, but I could not solve my problem.
Error: Route.post() requires callback functions but got a [object Undefined]
at Route.(anonymous function) [as post]...
Erine asked 18/1, 2016 at 11:30
3
Solved
I want to set a class attribute when my Rails app starts up. It requires inspecting some routes, so the routes need to be loaded before my custom code runs. I am having trouble finding a reliable p...
Klenk asked 3/1, 2012 at 3:7
5
I'm looking for a solution with Angular 2 for the scenario explained below:
In this scenario, the top-nav contains links to load submodules and sub-nav has links to update the submodule's contents...
6
Solved
In my Angular 5 project I've got a bootstrap nav-bar menu. routerLinkActive does work nicely when the start of the path matches the routerlink of the menu, like:
<li [routerLinkActive]="['activ...
Toast asked 5/3, 2018 at 15:54
2
Solved
I'm working on a basic blog in Express.js. Say I have route structure like this:
/blog/page/:page
I would also like a /blog route that is essentially an alias for /blog/page/1. How can I handle ...
7
Solved
Is there a way to check route fallback for post methods? This code works for any get url in my routes file i.e. I get this response("Page Not Found.") if I type and wrong GET url.
Is there a way t...
3
Solved
I'm doing an express app with typescript.
The router code is:
let user = new User();
router.get("/", user.test);
the user class is
export class User {
test(req, res, next) {
// this === undef...
Chromium asked 13/10, 2016 at 10:28
4
Solved
I am new to the web world and I just read the difference between a route and an endpoint.
I know the definition of an API. But what is the difference between an API and routes (endpoints)?
It seems...
Reciprocity asked 16/7, 2020 at 13:50
12
Solved
I have an angular application with several routes, such as:
site.com/
site.com/page
site.com/page/4
Using angular's html5 routing mode, these resolve correctly when you click links to them from ...
Aegean asked 30/3, 2014 at 2:10
5
Solved
I've been spending far too much time on this apparently simple problem. I have a route, page2 defined as follow:
// app.module.ts
import { Page2Component } from './page2/page2.component';
@NgModu...
20
Solved
I've just started learning the Laravel framework and I'm having an issue with routing.
The only route that's working is the default home route that's attached to Laravel out of the box.
I'm using W...
Violet asked 3/8, 2012 at 7:42
5
In Laravel, we can get route name from current URL via this:
Route::currentRouteName()
But, how can we get the route name from a specific given URL?
Thank you.
2
Solved
How to Use Shell Route with GoRoute in same hierarchy Routes
How do I push from ShellRoute to GoRoute in the same hierarchy as ShellRoute using one of the NavBar buttons?
Currently, the routes of...
19
Solved
I'm new in Next.js and I'm wondering how to redirect from start page ( / ) to /hello-nextjs for example. Once user loads a page and after that determine if path === / redirect to /hello-nextjs
In ...
Cockatiel asked 30/9, 2019 at 19:1
4
Solved
I have nextjs api route /api/auth/signout, it basically just clears the specific cookie and send JSON back.
The problem is, when I deploy project in Vercel, this particular API working first time p...
5
I carefully read the docs of next routing system.
It only mentions that I could achieve dynamic routing like this:
http://localhost:3000/level1/dynamicSlug
But I am trying to achive something like ...
5
Solved
I think this should be fairly easy but I'm not familiar with how it's done...
How do you write a before filter that would check if the current request is for certain subdomains, and if so redirect...
Fidele asked 15/5, 2012 at 4:29
4
Solved
I am using router from next by importing useRouter from next/router.
I am trying to find a solution which will not scroll to the top of the page when I change the query of the URL. Is there any sol...
Familial asked 26/1, 2021 at 13:53
© 2022 - 2024 — McMap. All rights reserved.