An aerosol-generating device comprising a top portion, a main portion, and a cartridge, the top portion comprising: - a top housing, - a heating element, - a proximal end comprising a cavity for receiving an aerosol-generating article, - a distal end comprising a top cartridge connector, and - a top airflow channel extending from the top cartridge connector to the cavity; the main portion comprising: - a main housing, - a power supply, - a proximal end comprising a main cartridge connector, - a main air inlet, and - a main airflow channel extending from the main air inlet to the main cartridge connector; the cartridge comprising: - a proximal end comprising a liquid outlet, - a distal end comprising an air inlet, and - a liquid storage portion arranged between the proximal end and the distal end; wherein the top cartridge connector of the top portion is removably attachable to the proximal end of the cartridge and the main cartridge connector of the main portion is removably attachable to the distal end of the cartridge such that when the cartridge is attached to both the top portion and the main portion, a continuous airflow route in fluid connection is provided along the main and top airflow channels from the main air inlet to the cavity through the liquid contained in the liquid storage portion of the cartridge enabling a first mode of operation, wherein the top cartridge connector is directly removably attachable to the main cartridge connector enabling a second mode of operation. the top portion comprising: - a top housing, - a heating element, - a proximal end comprising a cavity for receiving an aerosol-generating article, - a distal end comprising a top cartridge connector, and - a top airflow channel extending from the top cartridge connector to the cavity; - a top housing, - a heating element, - a proximal end comprising a cavity for receiving an aerosol-generating article, - a distal end comprising a top cartridge connector, and - a top airflow channel extending from the top cartridge connector to the cavity; the main portion comprising: - a main housing, - a power supply, - a proximal end comprising a main cartridge connector, - a main air inlet, and - a main airflow channel extending from the main air inlet to the main cartridge connector; - a main housing, - a power supply, - a proximal end comprising a main cartridge connector, - a main air inlet, and - a main airflow channel extending from the main air inlet to the main cartridge connector; the cartridge comprising: - a proximal end comprising a liquid outlet, - a distal end comprising an air inlet, and - a liquid storage portion arranged between the proximal end and the distal end; - a proximal end comprising a liquid outlet, - a distal end comprising an air inlet, and - a liquid storage portion arranged between the proximal end and the distal end; wherein the top cartridge connector of the top portion is removably attachable to the proximal end of the cartridge and the main cartridge connector of the main portion is removably attachable to the distal end of the cartridge such that when the cartridge is attached to both the top portion and the main portion, a continuous airflow route in fluid connection is provided along the main and top airflow channels from the main air inlet to the cavity through the liquid contained in the liquid storage portion of the cartridge enabling a first mode of operation, wherein the top cartridge connector is directly removably attachable to the main cartridge connector enabling a second mode of operation.