Skip to content

Commit 70349fb

Browse files
authored
remove legacy homepage (#3518)
# Description of Changes Please provide a summary of the changes, including: - What was changed - Why the change was made - Any challenges encountered Closes #(issue_number) --- ## Checklist ### General - [ ] I have read the [Contribution Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md) - [ ] I have read the [Stirling-PDF Developer Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md) (if applicable) - [ ] I have read the [How to add new languages to Stirling-PDF](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md) (if applicable) - [ ] I have performed a self-review of my own code - [ ] My changes generate no new warnings ### Documentation - [ ] I have updated relevant docs on [Stirling-PDF's doc repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/) (if functionality has heavily changed) - [ ] I have read the section [Add New Translation Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md#add-new-translation-tags) (for new translation tags only) ### UI Changes (if applicable) - [ ] Screenshots or videos demonstrating the UI changes are attached (e.g., as comments or direct attachments in the PR) ### Testing (if applicable) - [ ] I have tested my changes locally. Refer to the [Testing Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md#6-testing) for more details.
1 parent bef86b4 commit 70349fb

File tree

8 files changed

+3
-1048
lines changed

8 files changed

+3
-1048
lines changed

src/main/java/stirling/software/SPDF/controller/web/HomeWebController.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,8 @@ public String root(Model model) {
7777
}
7878

7979
@GetMapping("/home-legacy")
80-
public String homeLegacy(Model model) {
81-
model.addAttribute("currentPage", "home-legacy");
82-
return "home-legacy";
80+
public String redirectHomeLegacy() {
81+
return "redirect:/";
8382
}
8483

8584
@GetMapping(value = "/robots.txt", produces = MediaType.TEXT_PLAIN_VALUE)

src/main/resources/static/css/home-legacy.css

Lines changed: 0 additions & 229 deletions
This file was deleted.

src/main/resources/static/js/favourites.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,7 @@ function addToFavorites(entryId) {
126126
localStorage.setItem('favoritesList', JSON.stringify(favoritesList));
127127
updateFavoritesDropdown();
128128
updateFavoriteIcons();
129-
const currentPath = window.location.pathname;
130-
if (currentPath.includes('home-legacy')) {
131-
syncFavoritesLegacy();
132-
} else {
129+
133130
initializeCards();
134-
}
135131
}
136132
}

0 commit comments

Comments
 (0)