Questions tagged [html5mode]
50 questions
12
votes
2 answers
.htaccess for subfolder of AngularJS app with HTML5 mode
Overview :
I have an AngularJS application that uses $locationProvider.html5Mode(true) and it is served from an Apache server. Until now I used the source code to be accessed from the others and I just needed a redirect to index.html for the…

Radu Vlad
- 1,474
- 2
- 21
- 37
3
votes
1 answer
Redirect all AWS S3 http requests to index.html for AngularJS HTML5Mode
How do I redirect all requests to my static AWS S3 website to index.html so I can use AngularJS' HTML5 Mode?
I recently learned (to my unending delight) that it is possible to use AngularJS without the # in the URL by using HTML5 Mode. However, I…

jpyams
- 4,030
- 9
- 41
- 66
3
votes
1 answer
Adding office.js adds # in the url, then removes it
I have a mean-stack web site. Initially, views/index.html (having ) is the entry point of all the pages. It uses angular-ui-router and html5mode. Thus, https://localhost:3000/XXXX in a browser will remain the same (rather than…

SoftTimur
- 5,630
- 38
- 140
- 292
3
votes
3 answers
Adding office.js disables html5mode
I have a mean-stack website which enables html5mode by $locationProvider.html5Mode(true). and index.html looks like as follows:
...

SoftTimur
- 5,630
- 38
- 140
- 292
3
votes
2 answers
AngularJS: UI-Router solving routing hash-bang didn't work
I am currently using Angular version 1.6.4.
To solve the hashbang issue I was having, where all of my URL's were in this format:
http://localhost:8885/#/hotels/holiday-inn
My app.js including the router (using…

LatentDenis
- 2,839
- 12
- 48
- 99
2
votes
1 answer
Deploy Vue CLI on Azure App Service with History mode
Hi is there anyone who has deployed there application to azure app service and got the history mode to work?
I have been trying on and off, and cant get it work :S
Im using connect-history-api-fallback and my package.json lookslike this:
{
…

Daniel Öhling
- 23
- 4
2
votes
0 answers
Cannot point to the right bundles because of the base
I have a mean-stack website, and in index.html I have .
I am trying to follow this to integrate the ESM version of the Monaco Editor by using plain webpack.
I can successfully generate all the bundle files in dist folder.
Now, in…

SoftTimur
- 5,630
- 38
- 140
- 292
2
votes
0 answers
Passportjs redirect adds hashtag in the URL
I have a login page on my mean-stack website. The website uses html5mode, and has . The login uses Passport.js, eg:
router.get('/' + process.env.versionNumber + '/auth/google', passport.authenticate('google', { scope:…

SoftTimur
- 5,630
- 38
- 140
- 292
2
votes
1 answer
Angularjs ng-route, how to avoid reloading the entire page in html5 mode?
If I use hashbang mode there's no problem and transition between routes will be smooth, however if I change the routing mode to Html5 mode transition between the routes won't be as smooth as hashbang mode and we see some sort of blinking in other…

Hamid Behnam
- 961
- 1
- 11
- 16
2
votes
1 answer
htaccess rewrite to dist folder and set AngularJS html5mode true
I have an application in AngularJS where I need to set html5mode to true in order to remove the hash /#/ from URL. The application in minified version is found in the dist folder.
QUESTION: My goal is to rewrite traffic to the dist folder and to…

nicolaib
- 627
- 5
- 26
2
votes
1 answer
Nginx config with multiple AngularJS2 Projects using HTML5Mode
I have a problem with my Nginx configuration. I have two separate angularjs2 projects which should work with one nginx instance.
The applications are separated into two folder /admin and /webapp.
Now what I'm trying to do is when I call…

hesyar
- 467
- 1
- 5
- 12
2
votes
0 answers
HTML5 mode in react-router
I've built a nice webserver on a raspberry pi. Im using react-router and apache to run a web application.
But my probelm is now that the apache server isn't in HTLM5 mode and doesn't display the nice urls as I want. How can I put it in HTML5 mode?…

Lin0
- 71
- 1
- 8
2
votes
1 answer
How to remove hash from url angular app?
It may be the duplicate question. but i have tried so many solutions,no answer work for me. I am using ui-router for angular web app.
I am using apache2 server to serve the angular app. I am using Ubuntu.
My project code is inside of the folder…

Thilak Raj
- 880
- 3
- 10
- 25
2
votes
2 answers
Nginx rewrite rules for Angularjs to remove # hash in url in dynamic routes
I have done the following:
AngularJS app
In app.js:
$locationProvider.html5Mode(true);
In index.html:
nginx config
location / {
try_files $uri /index.html;
}
After deployment, things are working fine (# hash…

RoundOutTooSoon
- 9,821
- 8
- 35
- 52
1
vote
1 answer
Is there limit to number of files that can be cached in html5 manifest?
I have lot of .PNG images numbering from 1 to 259 with a total size 250kb. I need these images to be available as thumbnails when the app is used in offline mode. So I created the manifest including all of these resources and then added the manifest…

Necessary Thomas
- 11
- 2