From 47eaae575023469834c0c3a4aac64dc6d880e164 Mon Sep 17 00:00:00 2001 From: Vincent Date: Fri, 11 Mar 2022 09:29:19 +0100 Subject: [PATCH] docs: fix broken links API doc (#2296) --- internal/httpclient/api_v0alpha2.go | 16 ++++++++-------- selfservice/flow/recovery/handler.go | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/internal/httpclient/api_v0alpha2.go b/internal/httpclient/api_v0alpha2.go index 5c9aaa2a6ca5..0fe1f45b1c01 100644 --- a/internal/httpclient/api_v0alpha2.go +++ b/internal/httpclient/api_v0alpha2.go @@ -275,7 +275,7 @@ type V0alpha2Api interface { }) ``` - More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx). + More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return V0alpha2ApiApiGetSelfServiceRecoveryFlowRequest */ @@ -483,7 +483,7 @@ type V0alpha2Api interface { This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. - More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx). + More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return V0alpha2ApiApiInitializeSelfServiceRecoveryFlowForBrowsersRequest */ @@ -510,7 +510,7 @@ type V0alpha2Api interface { This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). - More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx). + More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return V0alpha2ApiApiInitializeSelfServiceRecoveryFlowWithoutBrowserRequest */ @@ -881,7 +881,7 @@ type V0alpha2Api interface { (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. - More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx). + More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return V0alpha2ApiApiSubmitSelfServiceRecoveryFlowRequest */ @@ -2939,7 +2939,7 @@ res.render('recovery', flow) }) ``` -More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx). +More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return V0alpha2ApiApiGetSelfServiceRecoveryFlowRequest */ @@ -4065,7 +4065,7 @@ or a 400 bad request error if the user is already authenticated. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. -More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx). +More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return V0alpha2ApiApiInitializeSelfServiceRecoveryFlowForBrowsersRequest */ @@ -4201,7 +4201,7 @@ you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). -More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx). +More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return V0alpha2ApiApiInitializeSelfServiceRecoveryFlowWithoutBrowserRequest */ @@ -6241,7 +6241,7 @@ does not have any API capabilities. The server responds with a HTTP 303 See Othe (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. -More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx). +More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return V0alpha2ApiApiSubmitSelfServiceRecoveryFlowRequest */ diff --git a/selfservice/flow/recovery/handler.go b/selfservice/flow/recovery/handler.go index 20482545b9c8..ae7893b30968 100644 --- a/selfservice/flow/recovery/handler.go +++ b/selfservice/flow/recovery/handler.go @@ -108,7 +108,7 @@ func (h *Handler) RegisterAdminRoutes(admin *x.RouterAdmin) { // This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). // // -// More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx). +// More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). // // Schemes: http, https // @@ -158,7 +158,7 @@ type initializeSelfServiceRecoveryFlowWithoutBrowser struct { // // This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. // -// More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx). +// More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). // // Schemes: http, https // @@ -231,7 +231,7 @@ type getSelfServiceRecoveryFlow struct { // }) // ``` // -// More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx). +// More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). // // Produces: // - application/json @@ -329,7 +329,7 @@ type submitSelfServiceRecoveryFlowBody struct{} // (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with // a new Recovery Flow ID which contains an error message that the recovery link was invalid. // -// More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx). +// More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). // // Consumes: // - application/json