33,289 questions
0
votes
1
answer
47
views
ASP.NET Core site can't find Default route on startup
I add a route named default with the pattern
{controller=Assets}/{action=Index}/{id?}
but I get an http 404 "Not Found" error.
If I type in /Assets in the browser, it finds the view, it's ...
2
votes
2
answers
130
views
No route to host Error 65: Python not able to fetch frame from Reolink IP camera
I would appreciate it if someone could take a look at this issue:
I am using a Reolink IP camera to regularly query a still image via Python. The camera is connected to a TP Link switch via a LAN ...
688
votes
31
answers
787k
views
How to detect a route change in Angular?
I am looking to detect a route change in my AppComponent.
Thereafter I will check the global user token to see if the user is logged in so that I can redirect the user if the user is not logged in.
1
vote
1
answer
129
views
Migrating from vanilla html to Astro: keep route name legacy
I built a site manually, without the help of any framework.
Each page is a html file, so the routes end with html, such as https://example.com/location.html
I am currently migrating it to Astro. But ...
0
votes
1
answer
82
views
OSRM Indian map extraction fails on 32GB RAM system, partitioned zones still can’t create cross-zone routes
I’m trying to set up OSRM with the latest India map (india-latest.osm.pbf). My system specs are:
RAM: 32 GB
CPU: Intel i7 11th Gen (8 cores / 16 threads)
When I try to extract the map (osrm-extract), ...
2
votes
1
answer
61
views
how to create a function that recieves a path compatible with the resolve fn
I'm creating a component that will receive several RouteId and create links
I want to use the resolve fn to validate them
see: https://svelte.dev/docs/kit/$app-paths#resolve
If I declare a prop (or a ...
1
vote
2
answers
56
views
How to synchronously read route data in AppComponent before first render
In our Angular application, our AppComponent template decides whether to show the full app layout (topbar, banner, ) or a standalone login screen.
Roughly, the template looks like this:
<ng-...
4
votes
2
answers
159
views
Why does @mapbox/polyline decode differently than Google’s Routes API polyline decoder?
I have an encoded polyline string:
ivgfAw_}bNaAfMwBjZk@IUrCGlC?jBFjCDbAV~B^xBVdAJFbB~EpApClAzBfC~DfAbBvDxGFZvDxGtAzBpDbHp@hAbDdG|EhH@d@bEbGlDnFl\fi@lIfN~OlWvFbJ|BpDg@~x@bDdFtHfMvZ~f@hDvF|EzHhDxFxTj^...
1
vote
1
answer
92
views
Angular Module Export Not Recognized
I am creating a new website in Angular V20. I have created a new module and added a new component to the module declarations and exports. I am exporting the component in its script. When I attempt to ...
399
votes
31
answers
143k
views
No route matches "/users/sign_out" devise rails 3
I've installed devise on my app and applied the following in my application.html.erb file:
<div id="user_nav">
<% if user_signed_in? %>
Signed in as <%= current_user.email %...
2
votes
1
answer
61
views
(only) URL doesn't update after navigation
I have recently updated my angular app from 18.x.x to 19.2.14.
I updated the angular version, so i could test my spec files.
The routing was working perfectly in the older version but i encountered a ...
237
votes
11
answers
435k
views
How to open a link in new tab using angular?
I have an angular 5 component that needs to open a link in new tab, I tried the following:
<a href="www.example.com" target="_blank">page link</a>
when I open the link, the application ...
0
votes
1
answer
119
views
How to redirect requests locally from one domain to another on mac
I need to test accepting requests from a custom domain to my local web server.
The idea is I have a main app domain
main-app.com
I provide a subdomain for users
user-1.main-app.com
Then the user can ...
125
votes
22
answers
382k
views
How to force Laravel Project to use HTTPS for all routes?
I am working on a project that requires a secure connection.
I can set the route, uri, asset to use 'https' via:
Route::get('order/details/{id}', ['uses' => 'OrderController@details', 'as' => '...
0
votes
0
answers
87
views
Blazor AuthorizeRouteView not showing Authorizing Layout
I have a .NET 9 Blazor Maui hybrid application.
In my Routes.razor i have this:
<CascadingAuthenticationState>
<Router AppAssembly="typeof(MainLayout).Assembly">
<...
151
votes
19
answers
274k
views
How to set the DefaultRoute to another Route in React Router
I have the following:
<Route name="app" path="/" handler={App}>
<Route name="dashboards" path="dashboards" handler={Dashboard}>
<Route name="exploreDashboard" path="...
205
votes
14
answers
289k
views
Change route params without reloading in Angular 2
I'm making a real estate website using Angular 2, Google Maps, etc. and when a user changes the center of the map I perform a search to the API indicating the current position of the map as well as ...
0
votes
0
answers
63
views
How to create a route with parameters only, while still retaining predefined routes
I am attempting to create a very flexible routing system that allows users to configure their own publishable url paths to their own content pages, sort of like a CMS. To achieve this, I created a ...
155
votes
17
answers
174k
views
Add a prefix to all Flask routes
I have a prefix that I want to add to every route. Right now I add a constant to the route at every definition. Is there a way to do this automatically?
PREFIX = "/abc/123"
@app.route(PREFIX + "/")...
2
votes
2
answers
1k
views
Laravel Livewire 3 | get current route in component
I need route based header that why I want to check route on each request and then I display my header as per requirement.
public function render()
{
dd(request()->route()); // testing request ...
118
votes
11
answers
82k
views
React-router v4 - cannot GET *url*
I started to use react-router v4. I have a simple <Router> in my app.js with some navigation links (see code below). If I navigate to localhost/vocabulary, router redirects me to the right page. ...
1
vote
1
answer
70
views
How to eliminate a Detailed Error log for Azure Application Service?
My site is hosted on Azure at .azurewebsites.net, with various custom domains mapped to it. Like most sites, I suspect, there are lots of probing requests for typical .php files etc that all return ...
116
votes
13
answers
157k
views
Use anchors with react-router
How can I use react-router, and have a link navigate to a particular place on a particular page? (e.g. /home-page#section-three)
Details:
I am using react-router in my React app.
I have a site-...
251
votes
14
answers
236k
views
How can I find out the current route in Rails?
I need to know the current route in a filter in Rails. How can I find out what it is?
I'm doing REST resources, and see no named routes.
0
votes
1
answer
43
views
Configure route for dynamic query in API Express
I'm working in this API where I can access data for many queries, but I'm having problems to retrieve data for a query by name containing (like:%data%), with dynamic data. I think it might just be a ...