mirror of
https://github.com/benbusby/whoogle-search.git
synced 2025-07-09 03:04:13 -04:00
Strip trailing slash on root url in filter
If a trailing slash is defined here, it causes the Whoogle instance to redirect these element requests back to the home page, causing unwanted behavior.
This commit is contained in:
parent
5c8be4428b
commit
a9b675cd24
@ -93,12 +93,13 @@ class Filter:
|
||||
self.config = config
|
||||
self.mobile = mobile
|
||||
self.user_key = user_key
|
||||
self.root_url = root_url
|
||||
self.page_url = page_url
|
||||
self.main_divs = ResultSet('')
|
||||
self._elements = 0
|
||||
self._av = set()
|
||||
|
||||
self.root_url = root_url[:-1] if root_url.endswith('/') else root_url
|
||||
|
||||
def __getitem__(self, name):
|
||||
return getattr(self, name)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user