Comments (1)
I think I figured it out. I remembered I used to have the same problem with angularJS when the html5 mode was set to true, but I solved it using different router. Now what needs to be done is to configure server rewrites so that the server knows where to look at. I use IIS so I made a web.config file
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="SBrewrite" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_URI}" pattern="^/(api)" negate="true" />
</conditions>
<action type="Rewrite" url="/" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
I leave this here in case someone has the same problem. Sorry for the noise.
from sb-admin-bs4-angular-8.
Related Issues (20)
- Load Language js package in dist Version HOT 3
- mat-expansion-panel HOT 4
- I can't view the Demo
- Error: Cannot match any routes. HOT 1
- Header component showing big HOT 1
- ng build --prod HOT 1
- Toasts not working ?
- Error: can't load module ansi-colors
- How can I set the routes for each component?
- Error: Unknown browser query `basedir=$(dirname "$(echo "$0" | sed -e 's`. Maybe you are using old Browserslist or made typo in query. HOT 1
- Problem while compiling due to boostrap
- ERROR in ./src/styles/app.scss
- npm install fails HOT 1
- Facing issue with ag grid HOT 1
- SB Admin
- Can't bind to 'formgroup' since it isn't a known property of 'form'. HOT 5
- When i run my server with the command of ng serve --open this error will be appear. Can Someone help HOT 2
- Bootstrap Component - Modal: locks view - in bs5 version bs4 is still used
- Could not resolve dependency...peer @angular/compiler@"15.2.0" from @angular/[email protected] HOT 1
- A
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sb-admin-bs4-angular-8.