skip to Main Content

Seo – how to Map multiple .net core controller routes

I currently map my controller routes like this: var webApplication = builder.Build(); webApplication.MapControllerRoute("default", "{controller=Home}/{action=Index}/{id?}"); This works great for my default scenario where I don't provide action name or id in the parameters. So for example the following routes work: https://example.com.com…

VIEW QUESTION

Ziggy Router Defaulting to Query String – Laravel

I am attempting to access the route "localhost:8000/contact/edit/{contact} in my vue file I am attempting it with <Link :href="route('contact.edit', {contact:contact.id})">Edit Contact</Link> Route in web.php Route::prefix('contact')->group(function() { Route::post('/', [ContactController::class, 'store'])->name('contact.store'); Route::get('/create/{customer}', [ContactController::class, 'create'])->name('contact.create'); Route::get('/edit/{contact}', [ContactController::class, 'edit'])->name('contact.edit'); }); Controller: public function edit(Contact…

VIEW QUESTION
Back To Top
Search