Skip to content

Commit

Permalink
Update search URL in landing.js
Browse files Browse the repository at this point in the history
The hardcoded search URL in landing.js was replaced with the "dictionaryResourceId" from the application settings. This change makes the search function more flexible and maintainable, as it allows dictionary resource IDs to be defined and updated via settings.
  • Loading branch information
Gcolon021 committed Feb 27, 2024
1 parent e11433b commit 054ab93
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ define(["underscore", "jquery", "backbone", "handlebars", "text!landing/landing.

let excludedTags = searchUtil.getAntiScopeTags();
let deferredVariables = $.ajax({
url: window.location.origin + "/picsure/search/36363664-6231-6134-2D38-6538652D3131",
url: window.location.origin + "/picsure/search/" + settings.dictionaryResourceId,
type: 'POST',
contentType: 'application/json',
data: JSON.stringify({
Expand Down

0 comments on commit 054ab93

Please sign in to comment.