From 5f657f3cbe04c609dfbf154e5d731134713a388c Mon Sep 17 00:00:00 2001 From: Seyi Adebajo Date: Thu, 31 May 2018 12:23:16 -0700 Subject: [PATCH] fix link to request dataset retention --- wherehows-web/app/utils/api/datasets/retention.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wherehows-web/app/utils/api/datasets/retention.ts b/wherehows-web/app/utils/api/datasets/retention.ts index 6db50ab2e8..e1264a0df9 100644 --- a/wherehows-web/app/utils/api/datasets/retention.ts +++ b/wherehows-web/app/utils/api/datasets/retention.ts @@ -3,13 +3,14 @@ import { datasetUrlByUrn } from 'wherehows-web/utils/api/datasets/shared'; import { IDatasetRetention, IGetDatasetRetentionResponse } from 'wherehows-web/typings/api/datasets/retention'; import { notFoundApiError } from 'wherehows-web/utils/api'; import { fleece } from 'wherehows-web/utils/object'; +import { encodeUrn } from 'wherehows-web/utils/validators/urn'; /** * Constructs the url for a datasets retention policy * @param {string} urn the urn for the dataset * @return {string} */ -const datasetRetentionUrlByUrn = (urn: string): string => `${datasetUrlByUrn(urn)}/retention`; +const datasetRetentionUrlByUrn = (urn: string): string => `${encodeUrn(datasetUrlByUrn(urn))}/retention`; /** * Fetches the list of retention policy for a dataset by urn