Pretty URLs in Ionic PWA Application

Hello Awesome Appery Team --

Question for y'all. I'm exporting my Appery project to create a PWA. By default, Angular creates URLs using # in the URL. Is it possible to remove the # to display a cleaner path. For example:

Current -- example.com/#/myaccount
Pretty URL -- example.com/myaccount

I've found an article which discusses how to do this in Angular, https://scotch.io/tutorials/pretty-ur..., but I'm not sure how I would apply this to my appery project. Any insight would be appreciated. Thank you.

Cheers.

Steve.
1 person has
this question
+1
Reply
  • Hello Steve,

    Appery.io doesn't have such functionality.

    Do you use Appery.io hosting? If so - it is not possible to do

    If you use your own hosting, please check this video tutorial:
    https://www.youtube.com/watch?v=XsRug...
    1. Setup your hosting to send all requests through index.html
    2. Change mode in sources:
    WEB_RESOURCES/app/app.js ($locationProvider.html5Mode)
    3. Set "base" in index.html

    Note: If you make these changes, Appery.io preview and Appery.io hosting won't work. So you will need to make these changes every time you make publishing and revert to make some changes in Visual Editor
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated