Azure / Azure/api-management-developer-portal

How to change deafault url from "/" to something else like "/developerportal"

Open
#2,335 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
545
Forks
360
PR merge metrics
No merged PRs in 30d

Description

## How to change default URL from "/" to something else like "/developerportal"

- We are hosting the static files to eg : https://example.com/developerportal
- But the css, etc is not working. Please see below image

![image](https://github.com/Azure/api-management-developer-portal/assets/69494946/6ed9327b-7fbb-4dfd-ab16-e027bc862951)

- But if i try to change the path. For example, for the logo if i change the path from "/logo.png" to "/developerportal/logo.png" it renders correctly. But, ofcourse i cant change all the paths in the static files itself. So how can I achieve this so that after the build the path is changed everywhere in the static files.

- Can some please help me with this issue? Thanks!

Contributor guide

No contributing guide indexed for this repository

Research direction

No file, test, or entry point is named. Start by tracing how the build emits asset URLs and reviewing the repository's build configuration. Done means the generated static files can be served beneath /developerportal with CSS, the logo, and other assets loading without manually editing paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.