Laravel dynamic routing with interface

I have an app which requires different HomeControllerdepending on subdomain I'm using. So for example domain.mydomain.com/news should point to one controller and mydomain.com/news to other. Is there any way to use interfaces in routes since now I'm...
more »

2017-10-31 16:10 (1) Answers

Customize Devise pathnames

I am trying to customize the urls created by the devise gem: devise_for :users, path: '', path_names: { sign_in: 'login', sign_out: 'logout', sign_up: 'signup', password: 'forgot', confirmation: 'activate', invitation: 'invit...
more »

2017-10-23 22:10 (1) Answers

Rails: uninitialized constant Controller

Here is my setup: Routes: resources :apps, except: [:index, :new], path: 'a' do resources :platforms, only: [:update] end Controller: class Apps::PlatformsController < ApplicationController before_action :authenticate_user! befor...
more »

2017-10-15 12:10 (1) Answers

MVC 5 Route Url Not Working

I have a UserController with the following actions: Register, Login, and UserProfile. So as for those actions, I want the URL's to be: Register - /User/Register Login - /User/Login UserProfile - /User/{username} (This route will take c...
more »

2017-09-29 20:09 (1) Answers

AJAX calls in Ruby : error 404

I'm new of ruby and web development, i've searched a lot for this problem but i still not figured out. I have a button : <button type="button" class="btn btn-primary" onclick="add()">Add</button> that call an AJAX function : <scr...
more »

2017-09-11 10:09 (1) Answers

Redirect batch of urls from routes.rb

For SEO purpose, I have to redirect bunch of urls (something like 200) for now, maybe more later, maybe less. I want to have easy access to it. So I thought about having a dedicated file containing all urls I need to redirect. Something like # confi...
more »

2017-08-17 12:08 (2) Answers

Dynamic route for catalog

I have this route routes.catalog.type = "Zend_Controller_Router_Route_Regex" routes.catalog.route = "(a|a-b|b|c|d|d-a|d-b)(.*)" routes.catalog.defaults.controller = "category" routes.catalog.defaults.action = "index" This match correctly with: ht...
more »

2017-08-04 13:08 (1) Answers

Angular ReuseStrategy

Recently I created Custom Reuse Strategy to reuse components for saving user inputs that is not saved properly(navigating away without clicking save button). shouldDetach(route: ActivatedRouteSnapshot): boolean { console.debug...
more »

2017-07-22 17:07 (0) Answers

static routing CentOS/Fedora 26

I've been having some trouble wrapping my head around how static routes work. Long story short I have the following: Fedora26 server with CentOS7 VM. Host IP: 192.168.0.6 VM IP: 192.168.122.205 The routing between the two works fine, as the vibr0 i...
more »

2017-07-19 20:07 (0) Answers

Route is redirecting to the wrong controller

I added these routes to RouteConfig.cs routes.MapRoute( name: "NewPositiveRelease", url: "dispatch/{poNumber}/{article}", defaults: new { controller = "PositiveReleaseItem", action = "Create"}); routes.MapRoute( name: "Dispatch", ...
more »

2017-07-03 06:07 (2) Answers

Route MVC ASP.Net just won't work

I can't get this work, even after dozens of other similar questions. Here is my controller (created with entity framework) namespace mypage.Controllers { [RoutePrefix("Booking")] public class BookingsController : BaseController { ...
more »

2017-07-01 21:07 (1) Answers

Flutter Redirect to a page on initState

I have an application where you need to log in to continue (for example with Google). I would like to redirect the user when the authentification is needed. However when I run a Navigator.of(context).pushNamed("myroute"). I got the following error:...
more »

2017-05-30 20:05 (1) Answers

ngRoute dynamic url as first part of path

I want to create dynamic URLs in my website. I'm using Angular in front-end with ngRoute. I want basicaly this URLs: mysite.com/home mysite.com/about mysite.com/(station's name)/ - this is a page to each station I've created but when I acces a st...
more »

2017-03-18 21:03 (1) Answers

Zend Framework Redirector Helper Routes

so I have this problem for two days that I can't figure out till now. Basically I created a simple login according to this Rob Allen's tutorial and some to adjust it with my environment. In that tutorial, when a user authenticated the login page redi...
more »

2017-02-21 03:02 (0) Answers

Angular 2: Prevent router from adding to history

We have a client that is iFraming in our app to their website. They don't want the router navigation within our app to affect the back button navigation for their own site. We've tried a couple methods including using post messages to try and have ...
more »

2017-02-03 17:02 (1) Answers