-
Notifications
You must be signed in to change notification settings - Fork 1
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
PivotResponseWriter #39
Conversation
202a385
to
9748bf3
Compare
I was able to wrap some own code around the http sequence handler.
|
I'm re-adding the code from #19 to see where that gets us: - // In the future we want to use getNormalizedMetadata and redirect in case the identifier differs
- let metadata = await this.accessor.getMetadata(identifier);
+ // We use getNormalizedMetadata and redirect in case the identifier differs
+ let metadata = await this.getNormalizedMetadata(identifier);
+ // Redirect in case the identifier differs
+ if (metadata.identifier.value !== identifier.path) {
+ throw new RedirectHttpError(302, 'Found', metadata.identifier.value);
+ } Actually while re-reading this I don't understand why it would lead to locking problems. |
Maybe I can hook into the BasicResponseWriter, here |
Merging this so we can tag a release and test it. |
Display containers even if trailing slash is missing from the URL