Problem with # in url

Discussion in 'JavaScript' started by remorex007, Jul 25, 2013.

  1. #1
    Dear Friends.

    I'm getting # problem in my url

    eg: /localhost/website/#/home

    can any one suggest me how to avoid that # symbol in the middle of the post.
     
    remorex007, Jul 25, 2013 IP
  2. fehtrar

    fehtrar Active Member

    Messages:
    11
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    80
    #2
    so instead of /localhost/website/#/home you want to have /localhost/website/home , right?

    just use replace: url.replace('/#/', '/');
     
    fehtrar, Aug 1, 2013 IP
  3. JoeSimmons

    JoeSimmons Greenhorn

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #3
    To give advice on how to avoid it, we need to know how it got there in the first place.
     
    JoeSimmons, Aug 10, 2013 IP
  4. remorex007

    remorex007 Member

    Messages:
    293
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #4
    Thank you for your help friends..
     
    remorex007, Aug 20, 2013 IP