towfiqi / serpbear

Search Engine Position Rank Tracking App
https://docs.serpbear.com/
MIT License
1.45k stars 145 forks source link

Bug Report: Issue with "Load Ideas" for Domains Containing Hyphens #250

Open HAL9000-sudo opened 6 days ago

HAL9000-sudo commented 6 days ago

Docker Version 2.0.6

Description:

In the "Ideas" section (domain/ideas/), the "Load Ideas" functionality does not work correctly for domains containing hyphens.

For domains like xyz.com, the page loads ideas as expected.
For domains with hyphens (e.g., x-y-z.com), the page does not function correctly.

Reproduction Steps:

Navigate to domain/ideas/ for a domain with hyphens (e.g., x-y-z.com).
Observe that the page fails to load ideas.

Observed Behavior:

The application incorrectly attempts to call the API with the following endpoint:

https://xyz.com/api/ideas?domain=x_y_z-com

Expected Behavior:

The correct API endpoint should be:

https://xyz.com/api/ideas?domain=x-y-z.com

When the API is manually accessed with the correct endpoint, it works as expected, confirming the API itself is functioning correctly. However, the page within the domain/ideas/ section does not load ideas for hyphenated domains.

Additional Information:

Despite this issue, the application saves the correct file in the Data folder:

IDEAS_x.y.z.com.json

This indicates the file handling is correct, but the logic for generating API requests on the page needs to be fixed for domains containing hyphens.

ingeniumdesign commented 6 days ago

i have this Error: Error Loading Keyword Ideas After i updated on the new version

towfiqi commented 6 days ago

@ingeniumdesign Please check the log of your docker instance and if there's an error message, share it here.