0

I am using angularjs in some parts of the page and I need html5 mode for reading the parameters from url. The problem is that whenever I turn on html5 mode the simple static links doesn't work, the url is being changed in navigation bar however it doesn't change the page ? Is there a way to make simple html links work in html5 mode ?

1

1 Answer 1

0

You have to configure Apache (or nginx, or node, or whatever server you are using) to always return an index.html page when accessing your domain. That way, the HTML5 mode in angular will work also as a regular page link

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.