Hi there,
I have a project which is working with a nginx webserver in production mode. In locationStrategy : hashbang everything is working well.
But in production mode i wish use locationStrategy : path. I use apache with this htaccess in developpment
The problem is all my pages (i use @IonicPage) don’t works when i come from a direct link to a page with a parameter, like :
For this IonicPage :
@IonicPage({
segment: ‘news/:token’,
name: ‘news’
})
if i type www.domain.com/news/mytoken in my web browser
the app try to load the chunk www.domain.com/news/build/2.js instead of www.domain.com/build/2.js
if i type www.domain.com/news/blablabla
the app try to load the chunk www.domain.com/news/blablabla/build/2.js instead of www.domain.com/build/2.js
For this IonicPage :
@IonicPage({
segment: ‘news’,
name: ‘news’
})
if i type www.domain.com/newsin my webbrowser everything. The app load the good chunk url : www.domain.com/build/2.js
Is it a known problem in ionic or i’m doing anything wrong ?
Thank you