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

URLs with path segments beginning with a period #136

Open
dvogel opened this issue Dec 16, 2024 · 0 comments
Open

URLs with path segments beginning with a period #136

dvogel opened this issue Dec 16, 2024 · 0 comments

Comments

@dvogel
Copy link
Collaborator

dvogel commented Dec 16, 2024

With a project directory structure like this:

app
└── pages
    ├── index.up
    └── .well-known
        └── openid-configuration.up

The application should respond to requests to /.well-known/openid-configuration. The scanning code that enumerates page files includes the openid-configuration.up file and the pushup build dir includes a translated source file .well-known__openid-configuration.up.go. However the go build conventions omit this file, making the URL return a 404 error.

Renaming this file in the build directory to omit the leading . character and re-running go build causes the URL to be recognized. It seems the pushup compiler should take a similar step, mangling the name in a way to ensure it gets included.

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

1 participant