In my Angular application with angular ui-router, I am facing an issue with the URL structure. When I access the application from the server, the URL looks like localhost/..../index.html
.
Once I click on a state, the URL changes to
localhost/.../index.html#[whateverStateClicked]
, which is expected behavior.
However, I now want to include a specific custom string after index.html in the URL such as
localhost/.../index.html/appString
upon application start and localhost/.../index.html/appString#[whateverStateClick]
when clicking on a state. The application's functionality should remain the same even when the appString is present.
This appString may change during app usage or be linked to a scope variable for updates without affecting the regular flow of the application.