Skip to content

fix(immoscout): support buy-side (-kaufen) apartment sub-type SEO URLs#370

Open
Kavlahkaff wants to merge 1 commit into
orangecoding:masterfrom
Kavlahkaff:fix_slugs_for_kaufen_type
Open

fix(immoscout): support buy-side (-kaufen) apartment sub-type SEO URLs#370
Kavlahkaff wants to merge 1 commit into
orangecoding:masterfrom
Kavlahkaff:fix_slugs_for_kaufen_type

Conversation

@Kavlahkaff

Copy link
Copy Markdown

Hi! First of all, thanks a lot for open-sourcing this project!
I found this error when setting up a job on my machine and opened this PR to resolve it. Happy to make any changes if needed!

  • Refactored WEB_PATH_TO_APARTMENT_EQUIPMENT_MAP to dynamically generate both -mieten and -kaufen variants from a shared BASE_SLUGS map.

  • Updated the fallback logic in convertWebToMobile to properly assign apartmentbuy instead of apartmentrent when the SEO path ends in -kaufen.

  • Added offline test cases to verify the translation of added buy-side slugs.

Closes: #369

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: ImmoScout: buy-side apartment sub-type SEO URLs (e.g. erdgeschosswohnung-kaufen) throw "Real estate type not found"

1 participant