mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Treating API urls as external in cells
Summary: Links for the API endpoints in a cell didn't work as they were interpreted as internal routes. Now they are properly detected as external. Test Plan: Added new test Reviewers: paulfitz Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D4078
This commit is contained in:
@@ -45,6 +45,18 @@ describe('gristUrls', function() {
|
||||
{params: {themeName: 'GristDark'}},
|
||||
);
|
||||
});
|
||||
|
||||
it('should detect API URLs', function() {
|
||||
assertUrlDecode(
|
||||
'http://localhost/o/docs/api/docs',
|
||||
{api: true},
|
||||
);
|
||||
|
||||
assertUrlDecode(
|
||||
'http://public.getgrist.com/api/docs',
|
||||
{api: true},
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe('parseFirstUrlPart', function() {
|
||||
|
||||
Reference in New Issue
Block a user