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

[FEATURE REQUEST] SPA SubPath are not supported #2359

Closed
aveyuan opened this issue Jan 30, 2024 · 1 comment
Closed

[FEATURE REQUEST] SPA SubPath are not supported #2359

aveyuan opened this issue Jan 30, 2024 · 1 comment
Assignees

Comments

@aveyuan
Copy link
Contributor

aveyuan commented Jan 30, 2024

Is your feature request related to a problem? Please describe.
SPA SubPath are not supported

it's ok

app.HandleDir("/", iris.Dir("./public"), iris.DirOptions{
  IndexName: "index.html",
  SPA:       true,
})

not ok

app.HandleDir("/admin", iris.Dir("./public"), iris.DirOptions{
  IndexName: "index.html",
  SPA:       true,
})

the index.html static resouce not found

Describe the solution you'd like
support subpath SPA

Describe alternatives you've considered

Additional context

@aveyuan
Copy link
Contributor Author

aveyuan commented Jan 30, 2024

should add root in iris.DirOptions

@aveyuan aveyuan closed this as completed Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants