Questions tagged as 'route'

2
answers

Problem with routes in laravel

I have slugs stored in the database of different tables, I plan to use the url always so www.exemplo.com/slug . For this I created a single route for this that looks like this: Route::get('{slug}', 'SlugAppController@view'); This rout...
asked by 03.06.2017 / 19:47
1
answer

Framework for single page application

I am putting together a static website and wanted to make this site a Single Page Application. I have science that being a SPA there are several complications with SEO. I ask you, is there any framework that does not have this problem with SEO a...
asked by 03.10.2017 / 14:23
2
answers

Routes with AngularJS and Node.js

I learned a little about AngularJS and now I'm starting with Node.js and some doubts have arisen. With the Angular I use $routeProvider to create the routes and to navigate between the pages as a single page application, in the Node I was...
asked by 15.06.2016 / 18:49
1
answer

How do I know where the route came from and redirect back?

I have 3 tables in BD : Emitentes, Pessoas e Cidades . Being that in the Issuers table and in the People table I have FK id_cidade . When I am registering one, both Emitente and Pessoa have in the views a li...
asked by 03.04.2017 / 15:05
1
answer

Otherwise with redirectTo to another url that is not part of the Single page application

For example, on the routes below: app.config(function($routeProvider){ $routeProvider.when('/dashboard', { templateUrl: "../views/dashboard.html", controller : "dashboardCtrl" }).when('/cadastro', { templateUrl:...
asked by 28.07.2016 / 01:32
1
answer

How to modify a url sent by form via get [Codeigniter]?

Personal I need to modify a url but I do not know how to do this. I have the following url: http://wedding.axitech.com.br/?procuraonde=Palhoça&procuraoque=bolos I need to make the url below: http://wedding.axitech.com.br/palhoca/bolos...
asked by 07.08.2016 / 20:41
1
answer

How do I make a Redirect on the route if it's the first time it runs?

My structure looks like this: var app = angular.module('MainApp',[ 'ngRoute', 'mainAppControllers' ]); app.config(['$routeProvider', function($routeProvider){ $routeProvider. when('/tutorial', { templateUrl:...
asked by 23.01.2015 / 21:04
1
answer

Create routes - Codeigniter

Well, I have this route defined in my Routes file: $route['novidades-e-estrategias-de-marketing-digital-em-nosso-blog/(.*)/(.*)'] = "blog/post_list/$1"; This is the url: novidades-e-estrategias-de-marketing-digital-em-nos...
asked by 13.04.2015 / 19:26
1
answer

Laravel 5.4: AJAX request using route with JS variable?

I need to use a Laravel route within the AJAX request code. The way I mounted it does not work, but it does not work. I believe the call of the variable ( servico ) is wrong, because I manually set a number like this: {{ route('getE...
asked by 05.08.2017 / 15:22
1
answer

How to set the url for a route in Laravel?

I'm using Laravel 5.4 and controllers in the Restful pattern. I configured the route file as follows: Route::resource('entryRegistry', 'EntryRegistryController'); In view: {{ route('entryRegistry.create') }} On Controller: public...
asked by 25.03.2017 / 17:22