Coder Social home page Coder Social logo

Comments (9)

laurelnaiad avatar laurelnaiad commented on June 12, 2024

I'm sorry, I'm not going to clone it and put it in Apache. It sounds like you're having trouble with your apache configuration. Couch Potato works fine in html5mode. I suggest you look at your apache configuration. Nothing about Couch Potato cares which web server you use. The samples include a simple node express server that is configured for html5 mode.

from angular-couch-potato.

kuma0605 avatar kuma0605 commented on June 12, 2024

I solved it.
I comment baseUrl in index.html, html5mode and change templateurl in routes, and prepend "#" to all links in html.
There is no need to change config in web server. That's what i want.

在 Oct 21, 2013,3:07 AM,Stu Salsbury [email protected] 写道:

I'm sorry, I'm not going to clone it and put it in Apache. It sounds like you're having trouble with your apache configuration. Couch Potato works fine in html5mode. I suggest you look at your apache configuration. Nothing about Couch Potato cares which web server you use. The samples include a simple node express server that is configured for html5 mode.


Reply to this email directly or view it on GitHub.

from angular-couch-potato.

mmahalwy avatar mmahalwy commented on June 12, 2024

@kuma0605 you didn't solve the problem though, you just did the hash solution...

from angular-couch-potato.

mparisi76 avatar mparisi76 commented on June 12, 2024

The hash url is not html5Mode..

from angular-couch-potato.

laurelnaiad avatar laurelnaiad commented on June 12, 2024

One way or the other, I think the takeaway message should be that couch potato doesn't really care about html5 mode one way or the other, and works just fine in either mode, but like the rest of angular's html5 mode, you need to configure your web server properly for it to work.

The script files should all end in .js. When I do html5 mode I just route everything that does not containa a . character to index.html and call it a day.

from angular-couch-potato.

talhamaniar avatar talhamaniar commented on June 12, 2024

while implementing "$locationProvider.html5Mode(true).hashPrefix('!');". When i refresh the page eg: url: localhost:8000 /project.
i am getting issue in page " NOT FOUND ". Any one can help me where i am wrong..

from angular-couch-potato.

laurelnaiad avatar laurelnaiad commented on June 12, 2024

It sounds like your server isn't properly configured for html5-mode routing.

from angular-couch-potato.

talhamaniar avatar talhamaniar commented on June 12, 2024

my server is working fine. i m getting the result but after reload or refresh the page it showing " NOT FOUND "

from angular-couch-potato.

laurelnaiad avatar laurelnaiad commented on June 12, 2024

Well, yours is the classic symptom of not having configured the server properly. Please open a separate issue with diagnostic information that shows that your browser is getting the proper files from the server when you refresh if you'd like to get some help. You can easily create a capture of the initial page load that works combined with what happens when you refresh by following the instructions to create a HAR file. Thanks.

from angular-couch-potato.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.