Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Absolute url for admin panel being ignored with and without --watch-admin #20310

Open
Olli1080 opened this issue May 14, 2024 · 0 comments
Open
Assignees
Labels
issue: bug Issue reporting a bug severity: low If the issue only affects a very niche base of users and an easily implemented workaround can solve source: core:strapi Source is core/strapi package status: pending reproduction Waiting for free time to reproduce the issue, or more information

Comments

@Olli1080
Copy link

Olli1080 commented May 14, 2024

Bug report

Required System information

  • Node.js version: 20.13.1
  • NPM version: 10.5.2
  • Strapi version: v4.24.2
  • Database: postgresql
  • Operating system: Windows 11 Pro - Version 10.0.22621
  • Is your project Javascript or Typescript: Typescript

Describe the bug

The admin panel url is being ignored.

Steps to reproduce the behavior

  1. Install with npx create-strapi-app@latest my-project
  2. Go to 'config/admin.ts'
  3. Insert the three lines:
    host: 'localhost',
    port: 7000,
    url: env('URL_ADMIN', 'http://localhost:7000/admin'),
  4. Start with either npx strapi develop or npx strapi develop --watch-admin
  5. Open 'http://localhost:7000/admin' after build finished
  6. Page won't load
  7. Open 'http://localhost:1337/admin'
  8. Admin panel loads while it shouldn't

Expected behavior

The admin panel should be located on the specified url

@joshuaellis joshuaellis added issue: bug Issue reporting a bug severity: low If the issue only affects a very niche base of users and an easily implemented workaround can solve source: core:strapi Source is core/strapi package status: pending reproduction Waiting for free time to reproduce the issue, or more information labels May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Issue reporting a bug severity: low If the issue only affects a very niche base of users and an easily implemented workaround can solve source: core:strapi Source is core/strapi package status: pending reproduction Waiting for free time to reproduce the issue, or more information
Projects
Status: To be reviewed (Open)
Status: To review
Development

No branches or pull requests

3 participants