Remove slug name from url locomotivecms

101 Views Asked by At

How can I remove slug name from URL? I have URL with parent page:

host_url/home/index

but I need this to be as

host_url/index  #without parent slug name
2

There are 2 best solutions below

2
Radix On

You can simply change the routes as:

match '/index', :to => 'home#index', via: [:get]
0
7urkm3n On

If using resources in routes .

resources :users, path: '/'

get '/index' => 'home#index'